github.com/openshift-online/ocm-sdk-go@v0.1.473/clustersmgmt/v1/gcp_inquiries_client.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  	"net/http"
    24  	"path"
    25  )
    26  
    27  // GCPInquiriesClient is the client of the 'GCP_inquiries' resource.
    28  //
    29  // Manages the collection of gcp inquiries.
    30  type GCPInquiriesClient struct {
    31  	transport http.RoundTripper
    32  	path      string
    33  }
    34  
    35  // NewGCPInquiriesClient creates a new client for the 'GCP_inquiries'
    36  // resource using the given transport to send the requests and receive the
    37  // responses.
    38  func NewGCPInquiriesClient(transport http.RoundTripper, path string) *GCPInquiriesClient {
    39  	return &GCPInquiriesClient{
    40  		transport: transport,
    41  		path:      path,
    42  	}
    43  }
    44  
    45  // EncryptionKeys returns the target 'encryption_keys_inquiry' resource.
    46  //
    47  // Reference to the resource that manages a collection of encryption keys.
    48  func (c *GCPInquiriesClient) EncryptionKeys() *EncryptionKeysInquiryClient {
    49  	return NewEncryptionKeysInquiryClient(
    50  		c.transport,
    51  		path.Join(c.path, "encryption_keys"),
    52  	)
    53  }
    54  
    55  // KeyRings returns the target 'key_rings_inquiry' resource.
    56  //
    57  // Reference to the resource that manages a collection of key rings.
    58  func (c *GCPInquiriesClient) KeyRings() *KeyRingsInquiryClient {
    59  	return NewKeyRingsInquiryClient(
    60  		c.transport,
    61  		path.Join(c.path, "key_rings"),
    62  	)
    63  }
    64  
    65  // MachineTypes returns the target 'GCP_region_machine_types_inquiry' resource.
    66  //
    67  // Reference to the resource that manages gcp machine types by regions.
    68  func (c *GCPInquiriesClient) MachineTypes() *GCPRegionMachineTypesInquiryClient {
    69  	return NewGCPRegionMachineTypesInquiryClient(
    70  		c.transport,
    71  		path.Join(c.path, "machine_types"),
    72  	)
    73  }
    74  
    75  // Regions returns the target 'available_regions_inquiry' resource.
    76  //
    77  // Reference to the resource that manages a collection of regions.
    78  func (c *GCPInquiriesClient) Regions() *AvailableRegionsInquiryClient {
    79  	return NewAvailableRegionsInquiryClient(
    80  		c.transport,
    81  		path.Join(c.path, "regions"),
    82  	)
    83  }
    84  
    85  // Vpcs returns the target 'vpcs_inquiry' resource.
    86  //
    87  // Reference to the resource that manages a collection of vpcs.
    88  func (c *GCPInquiriesClient) Vpcs() *VpcsInquiryClient {
    89  	return NewVpcsInquiryClient(
    90  		c.transport,
    91  		path.Join(c.path, "vpcs"),
    92  	)
    93  }