github.com/openshift-online/ocm-sdk-go@v0.1.473/clustersmgmt/v1/aws_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  // AWSInquiriesClient is the client of the 'AWS_inquiries' resource.
    28  //
    29  // Manages the collection of aws inquiries.
    30  type AWSInquiriesClient struct {
    31  	transport http.RoundTripper
    32  	path      string
    33  }
    34  
    35  // NewAWSInquiriesClient creates a new client for the 'AWS_inquiries'
    36  // resource using the given transport to send the requests and receive the
    37  // responses.
    38  func NewAWSInquiriesClient(transport http.RoundTripper, path string) *AWSInquiriesClient {
    39  	return &AWSInquiriesClient{
    40  		transport: transport,
    41  		path:      path,
    42  	}
    43  }
    44  
    45  // STSAccountRoles returns the target 'AWSSTS_account_roles_inquiry' resource.
    46  //
    47  // Reference to the resource that manages aws sts roles.
    48  func (c *AWSInquiriesClient) STSAccountRoles() *AWSSTSAccountRolesInquiryClient {
    49  	return NewAWSSTSAccountRolesInquiryClient(
    50  		c.transport,
    51  		path.Join(c.path, "sts_account_roles"),
    52  	)
    53  }
    54  
    55  // STSCredentialRequests returns the target 'STS_credential_requests_inquiry' resource.
    56  //
    57  // Reference to the resource that manages sts cred request.
    58  func (c *AWSInquiriesClient) STSCredentialRequests() *STSCredentialRequestsInquiryClient {
    59  	return NewSTSCredentialRequestsInquiryClient(
    60  		c.transport,
    61  		path.Join(c.path, "sts_credential_requests"),
    62  	)
    63  }
    64  
    65  // STSPolicies returns the target 'AWSSTS_policies_inquiry' resource.
    66  //
    67  // Reference to the resource that manages aws sts policies.
    68  func (c *AWSInquiriesClient) STSPolicies() *AWSSTSPoliciesInquiryClient {
    69  	return NewAWSSTSPoliciesInquiryClient(
    70  		c.transport,
    71  		path.Join(c.path, "sts_policies"),
    72  	)
    73  }
    74  
    75  // MachineTypes returns the target 'AWS_region_machine_types_inquiry' resource.
    76  //
    77  // Reference to the resource that manages aws machine types by regions.
    78  func (c *AWSInquiriesClient) MachineTypes() *AWSRegionMachineTypesInquiryClient {
    79  	return NewAWSRegionMachineTypesInquiryClient(
    80  		c.transport,
    81  		path.Join(c.path, "machine_types"),
    82  	)
    83  }
    84  
    85  // OidcThumbprint returns the target 'oidc_thumbprint' resource.
    86  //
    87  // Reference to the resource that manages OIDC Config Thumbprint fetching.
    88  func (c *AWSInquiriesClient) OidcThumbprint() *OidcThumbprintClient {
    89  	return NewOidcThumbprintClient(
    90  		c.transport,
    91  		path.Join(c.path, "oidc_thumbprint"),
    92  	)
    93  }
    94  
    95  // Regions returns the target 'available_regions_inquiry' resource.
    96  //
    97  // Reference to the resource that manages a collection of regions.
    98  func (c *AWSInquiriesClient) Regions() *AvailableRegionsInquiryClient {
    99  	return NewAvailableRegionsInquiryClient(
   100  		c.transport,
   101  		path.Join(c.path, "regions"),
   102  	)
   103  }
   104  
   105  // ValidateCredentials returns the target 'aws_validate_credentials' resource.
   106  //
   107  // Reference to the resource that manages creds validation.
   108  func (c *AWSInquiriesClient) ValidateCredentials() *AwsValidateCredentialsClient {
   109  	return NewAwsValidateCredentialsClient(
   110  		c.transport,
   111  		path.Join(c.path, "validate_credentials"),
   112  	)
   113  }
   114  
   115  // Vpcs returns the target 'vpcs_inquiry' resource.
   116  //
   117  // Reference to the resource that manages a collection of vpcs.
   118  func (c *AWSInquiriesClient) Vpcs() *VpcsInquiryClient {
   119  	return NewVpcsInquiryClient(
   120  		c.transport,
   121  		path.Join(c.path, "vpcs"),
   122  	)
   123  }