github.com/openshift-online/ocm-sdk-go@v0.1.473/clustersmgmt/v1/cluster_registration_builder_alias.go (about) 1 /* 2 Copyright (c) 2020 Red Hat, Inc. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 // IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all 18 // your changes will be lost when the file is generated again. 19 20 package v1 // github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1 21 22 import ( 23 api_v1 "github.com/openshift-online/ocm-api-model/clientapi/clustersmgmt/v1" 24 ) 25 26 // ClusterRegistrationBuilder contains the data and logic needed to build 'cluster_registration' objects. 27 // 28 // Registration of a new cluster to the service. 29 // 30 // For example, to register a cluster that has been provisioned outside 31 // of this service, send a a request like this: 32 // 33 // ```http 34 // POST /api/clusters_mgmt/v1/register_cluster HTTP/1.1 35 // ``` 36 // 37 // With a request body like this: 38 // 39 // ```json 40 // 41 // { 42 // "external_id": "d656aecf-11a6-4782-ad86-8f72638449ba", 43 // "subscription_id": "...", 44 // "organization_id": "..." 45 // } 46 // 47 // ``` 48 type ClusterRegistrationBuilder = api_v1.ClusterRegistrationBuilder 49 50 // NewClusterRegistration creates a new builder of 'cluster_registration' objects. 51 var NewClusterRegistration = api_v1.NewClusterRegistration