github.com/openshift-online/ocm-sdk-go@v0.1.473/clustersmgmt/v1/root_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  // Client is the client of the 'root' resource.
    28  //
    29  // Root of the tree of resources of the clusters management service.
    30  type Client struct {
    31  	transport http.RoundTripper
    32  	path      string
    33  }
    34  
    35  // NewClient creates a new client for the 'root'
    36  // resource using the given transport to send the requests and receive the
    37  // responses.
    38  func NewClient(transport http.RoundTripper, path string) *Client {
    39  	return &Client{
    40  		transport: transport,
    41  		path:      path,
    42  	}
    43  }
    44  
    45  // Creates a new request for the method that retrieves the metadata.
    46  func (c *Client) Get() *MetadataRequest {
    47  	return &MetadataRequest{
    48  		transport: c.transport,
    49  		path:      c.path,
    50  	}
    51  }
    52  
    53  // AWSInfrastructureAccessRoles returns the target 'AWS_infrastructure_access_roles' resource.
    54  //
    55  // Reference to the resource that manages the collection of AWS
    56  // infrastructure access roles.
    57  func (c *Client) AWSInfrastructureAccessRoles() *AWSInfrastructureAccessRolesClient {
    58  	return NewAWSInfrastructureAccessRolesClient(
    59  		c.transport,
    60  		path.Join(c.path, "aws_infrastructure_access_roles"),
    61  	)
    62  }
    63  
    64  // AWSInquiries returns the target 'AWS_inquiries' resource.
    65  //
    66  // Reference to the resource that manages the collection of aws inquiries.
    67  func (c *Client) AWSInquiries() *AWSInquiriesClient {
    68  	return NewAWSInquiriesClient(
    69  		c.transport,
    70  		path.Join(c.path, "aws_inquiries"),
    71  	)
    72  }
    73  
    74  // DNSDomains returns the target 'DNS_domains' resource.
    75  //
    76  // Reference to the resource that manages dns domains.
    77  func (c *Client) DNSDomains() *DNSDomainsClient {
    78  	return NewDNSDomainsClient(
    79  		c.transport,
    80  		path.Join(c.path, "dns_domains"),
    81  	)
    82  }
    83  
    84  // GCP returns the target 'GCP' resource.
    85  //
    86  // Reference to the resource that manages the collection of gcp endpoints.
    87  func (c *Client) GCP() *GCPClient {
    88  	return NewGCPClient(
    89  		c.transport,
    90  		path.Join(c.path, "gcp"),
    91  	)
    92  }
    93  
    94  // GCPInquiries returns the target 'GCP_inquiries' resource.
    95  //
    96  // Reference to the resource that manages the collection of gcp inquiries.
    97  func (c *Client) GCPInquiries() *GCPInquiriesClient {
    98  	return NewGCPInquiriesClient(
    99  		c.transport,
   100  		path.Join(c.path, "gcp_inquiries"),
   101  	)
   102  }
   103  
   104  // Addons returns the target 'add_ons' resource.
   105  //
   106  // Reference to the resource that manages the collection of add-ons.
   107  func (c *Client) Addons() *AddOnsClient {
   108  	return NewAddOnsClient(
   109  		c.transport,
   110  		path.Join(c.path, "addons"),
   111  	)
   112  }
   113  
   114  // CloudProviders returns the target 'cloud_providers' resource.
   115  //
   116  // Reference to the resource that manages the collection of cloud providers.
   117  func (c *Client) CloudProviders() *CloudProvidersClient {
   118  	return NewCloudProvidersClient(
   119  		c.transport,
   120  		path.Join(c.path, "cloud_providers"),
   121  	)
   122  }
   123  
   124  // Clusters returns the target 'clusters' resource.
   125  //
   126  // Reference to the resource that manages the collection of clusters.
   127  func (c *Client) Clusters() *ClustersClient {
   128  	return NewClustersClient(
   129  		c.transport,
   130  		path.Join(c.path, "clusters"),
   131  	)
   132  }
   133  
   134  // Environment returns the target 'environment' resource.
   135  //
   136  // Reference to the resource that manages the environment.
   137  func (c *Client) Environment() *EnvironmentClient {
   138  	return NewEnvironmentClient(
   139  		c.transport,
   140  		path.Join(c.path, "environment"),
   141  	)
   142  }
   143  
   144  // Events returns the target 'events' resource.
   145  //
   146  // Reference to the resource that manages the collection of trackable events.
   147  func (c *Client) Events() *EventsClient {
   148  	return NewEventsClient(
   149  		c.transport,
   150  		path.Join(c.path, "events"),
   151  	)
   152  }
   153  
   154  // Flavours returns the target 'flavours' resource.
   155  //
   156  // Reference to the service that manages the collection of flavours.
   157  func (c *Client) Flavours() *FlavoursClient {
   158  	return NewFlavoursClient(
   159  		c.transport,
   160  		path.Join(c.path, "flavours"),
   161  	)
   162  }
   163  
   164  // LimitedSupportReasonTemplates returns the target 'limited_support_reason_templates' resource.
   165  //
   166  // Reference to limited support reason templates.
   167  func (c *Client) LimitedSupportReasonTemplates() *LimitedSupportReasonTemplatesClient {
   168  	return NewLimitedSupportReasonTemplatesClient(
   169  		c.transport,
   170  		path.Join(c.path, "limited_support_reason_templates"),
   171  	)
   172  }
   173  
   174  // LoadBalancerQuotaValues returns the target 'load_balancer_quota_values' resource.
   175  //
   176  // Reference to the resource that manages the load balancer quota values.
   177  func (c *Client) LoadBalancerQuotaValues() *LoadBalancerQuotaValuesClient {
   178  	return NewLoadBalancerQuotaValuesClient(
   179  		c.transport,
   180  		path.Join(c.path, "load_balancer_quota_values"),
   181  	)
   182  }
   183  
   184  // MachineTypes returns the target 'machine_types' resource.
   185  //
   186  // Reference to the resource that manage the collection of machine types.
   187  func (c *Client) MachineTypes() *MachineTypesClient {
   188  	return NewMachineTypesClient(
   189  		c.transport,
   190  		path.Join(c.path, "machine_types"),
   191  	)
   192  }
   193  
   194  // NetworkVerifications returns the target 'network_verifications' resource.
   195  //
   196  // Reference to the resource that manages network verifications.
   197  func (c *Client) NetworkVerifications() *NetworkVerificationsClient {
   198  	return NewNetworkVerificationsClient(
   199  		c.transport,
   200  		path.Join(c.path, "network_verifications"),
   201  	)
   202  }
   203  
   204  // OidcConfigs returns the target 'oidc_configs' resource.
   205  //
   206  // Reference to the resource that manages oidc.
   207  func (c *Client) OidcConfigs() *OidcConfigsClient {
   208  	return NewOidcConfigsClient(
   209  		c.transport,
   210  		path.Join(c.path, "oidc_configs"),
   211  	)
   212  }
   213  
   214  // PendingDeleteClusters returns the target 'pending_delete_clusters' resource.
   215  //
   216  // Reference to the resource that manages the collection of pending delete clusters.
   217  func (c *Client) PendingDeleteClusters() *PendingDeleteClustersClient {
   218  	return NewPendingDeleteClustersClient(
   219  		c.transport,
   220  		path.Join(c.path, "pending_delete_clusters"),
   221  	)
   222  }
   223  
   224  // Products returns the target 'products' resource.
   225  //
   226  // Reference to the resource that manages the collection of products.
   227  func (c *Client) Products() *ProductsClient {
   228  	return NewProductsClient(
   229  		c.transport,
   230  		path.Join(c.path, "products"),
   231  	)
   232  }
   233  
   234  // ProvisionShards returns the target 'provision_shards' resource.
   235  //
   236  // Reference to the resource that manages the collection of provision shards.
   237  func (c *Client) ProvisionShards() *ProvisionShardsClient {
   238  	return NewProvisionShardsClient(
   239  		c.transport,
   240  		path.Join(c.path, "provision_shards"),
   241  	)
   242  }
   243  
   244  // RegistryAllowlists returns the target 'registry_allowlists' resource.
   245  //
   246  // Reference to the resource that manages the collection of registry allowlists.
   247  func (c *Client) RegistryAllowlists() *RegistryAllowlistsClient {
   248  	return NewRegistryAllowlistsClient(
   249  		c.transport,
   250  		path.Join(c.path, "registry_allowlists"),
   251  	)
   252  }
   253  
   254  // StorageQuotaValues returns the target 'storage_quota_values' resource.
   255  //
   256  // Reference to the resource that manages the storage quota values.
   257  func (c *Client) StorageQuotaValues() *StorageQuotaValuesClient {
   258  	return NewStorageQuotaValuesClient(
   259  		c.transport,
   260  		path.Join(c.path, "storage_quota_values"),
   261  	)
   262  }
   263  
   264  // TrustedIPAddresses returns the target 'trusted_ips' resource.
   265  //
   266  // Reference to the resource that manages the collection of trusted ip addresses.
   267  func (c *Client) TrustedIPAddresses() *TrustedIpsClient {
   268  	return NewTrustedIpsClient(
   269  		c.transport,
   270  		path.Join(c.path, "trusted_ip_addresses"),
   271  	)
   272  }
   273  
   274  // VersionGates returns the target 'version_gates' resource.
   275  //
   276  // Reference to version gates.
   277  func (c *Client) VersionGates() *VersionGatesClient {
   278  	return NewVersionGatesClient(
   279  		c.transport,
   280  		path.Join(c.path, "version_gates"),
   281  	)
   282  }
   283  
   284  // Versions returns the target 'versions' resource.
   285  //
   286  // Reference to the resource that manage the collection of versions.
   287  func (c *Client) Versions() *VersionsClient {
   288  	return NewVersionsClient(
   289  		c.transport,
   290  		path.Join(c.path, "versions"),
   291  	)
   292  }