github.com/Venafi/vcert/v5@v5.10.2/pkg/webclient/cloudproviders/cloudproviders.gen.go (about)

     1  // Code generated by github.com/Khan/genqlient, DO NOT EDIT.
     2  
     3  package cloudproviders
     4  
     5  import (
     6  	"context"
     7  	"encoding/json"
     8  	"fmt"
     9  
    10  	"github.com/Khan/genqlient/graphql"
    11  )
    12  
    13  type CertificateProvisioningAWSOptionsInput struct {
    14  	// Amazon Resource Name (ARN) uniquely identifying AWS certificate resource
    15  	Arn  *string                                  `json:"arn"`
    16  	Tags []*CertificateProvisioningTagOptionInput `json:"tags,omitempty"`
    17  }
    18  
    19  // GetArn returns CertificateProvisioningAWSOptionsInput.Arn, and is useful for accessing the field via an interface.
    20  func (v *CertificateProvisioningAWSOptionsInput) GetArn() *string { return v.Arn }
    21  
    22  // GetTags returns CertificateProvisioningAWSOptionsInput.Tags, and is useful for accessing the field via an interface.
    23  func (v *CertificateProvisioningAWSOptionsInput) GetTags() []*CertificateProvisioningTagOptionInput {
    24  	return v.Tags
    25  }
    26  
    27  type CertificateProvisioningAzureOptionsInput struct {
    28  	// An Azure object-name is a user provided name for and must be unique within a key vault. The name must be a 1-127 character string, starting with a letter and containing only 0-9, a-z, A-Z, and -.
    29  	Name       *string                                  `json:"name"`
    30  	Enabled    *bool                                    `json:"enabled"`
    31  	Exportable *bool                                    `json:"exportable"`
    32  	ReuseKey   *bool                                    `json:"reuseKey"`
    33  	Tags       []*CertificateProvisioningTagOptionInput `json:"tags,omitempty"`
    34  }
    35  
    36  // GetName returns CertificateProvisioningAzureOptionsInput.Name, and is useful for accessing the field via an interface.
    37  func (v *CertificateProvisioningAzureOptionsInput) GetName() *string { return v.Name }
    38  
    39  // GetEnabled returns CertificateProvisioningAzureOptionsInput.Enabled, and is useful for accessing the field via an interface.
    40  func (v *CertificateProvisioningAzureOptionsInput) GetEnabled() *bool { return v.Enabled }
    41  
    42  // GetExportable returns CertificateProvisioningAzureOptionsInput.Exportable, and is useful for accessing the field via an interface.
    43  func (v *CertificateProvisioningAzureOptionsInput) GetExportable() *bool { return v.Exportable }
    44  
    45  // GetReuseKey returns CertificateProvisioningAzureOptionsInput.ReuseKey, and is useful for accessing the field via an interface.
    46  func (v *CertificateProvisioningAzureOptionsInput) GetReuseKey() *bool { return v.ReuseKey }
    47  
    48  // GetTags returns CertificateProvisioningAzureOptionsInput.Tags, and is useful for accessing the field via an interface.
    49  func (v *CertificateProvisioningAzureOptionsInput) GetTags() []*CertificateProvisioningTagOptionInput {
    50  	return v.Tags
    51  }
    52  
    53  type CertificateProvisioningGCPOptionsInput struct {
    54  	// A GCM certificate id is a user provider name and must be unique within a region. The id must be a 1-63 character string, start with a letter and only contain lower case letters, digits and hyphens.
    55  	Id          *string                                  `json:"id"`
    56  	Description *string                                  `json:"description"`
    57  	Scope       *GCMCertificateScope                     `json:"scope"`
    58  	Labels      []*CertificateProvisioningTagOptionInput `json:"labels,omitempty"`
    59  }
    60  
    61  // GetId returns CertificateProvisioningGCPOptionsInput.Id, and is useful for accessing the field via an interface.
    62  func (v *CertificateProvisioningGCPOptionsInput) GetId() *string { return v.Id }
    63  
    64  // GetDescription returns CertificateProvisioningGCPOptionsInput.Description, and is useful for accessing the field via an interface.
    65  func (v *CertificateProvisioningGCPOptionsInput) GetDescription() *string { return v.Description }
    66  
    67  // GetScope returns CertificateProvisioningGCPOptionsInput.Scope, and is useful for accessing the field via an interface.
    68  func (v *CertificateProvisioningGCPOptionsInput) GetScope() *GCMCertificateScope { return v.Scope }
    69  
    70  // GetLabels returns CertificateProvisioningGCPOptionsInput.Labels, and is useful for accessing the field via an interface.
    71  func (v *CertificateProvisioningGCPOptionsInput) GetLabels() []*CertificateProvisioningTagOptionInput {
    72  	return v.Labels
    73  }
    74  
    75  type CertificateProvisioningOptionsInput struct {
    76  	AwsOptions   *CertificateProvisioningAWSOptionsInput   `json:"awsOptions,omitempty"`
    77  	AzureOptions *CertificateProvisioningAzureOptionsInput `json:"azureOptions,omitempty"`
    78  	GcpOptions   *CertificateProvisioningGCPOptionsInput   `json:"gcpOptions,omitempty"`
    79  }
    80  
    81  // GetAwsOptions returns CertificateProvisioningOptionsInput.AwsOptions, and is useful for accessing the field via an interface.
    82  func (v *CertificateProvisioningOptionsInput) GetAwsOptions() *CertificateProvisioningAWSOptionsInput {
    83  	return v.AwsOptions
    84  }
    85  
    86  // GetAzureOptions returns CertificateProvisioningOptionsInput.AzureOptions, and is useful for accessing the field via an interface.
    87  func (v *CertificateProvisioningOptionsInput) GetAzureOptions() *CertificateProvisioningAzureOptionsInput {
    88  	return v.AzureOptions
    89  }
    90  
    91  // GetGcpOptions returns CertificateProvisioningOptionsInput.GcpOptions, and is useful for accessing the field via an interface.
    92  func (v *CertificateProvisioningOptionsInput) GetGcpOptions() *CertificateProvisioningGCPOptionsInput {
    93  	return v.GcpOptions
    94  }
    95  
    96  type CertificateProvisioningTagOptionInput struct {
    97  	Name  string `json:"name"`
    98  	Value string `json:"value"`
    99  }
   100  
   101  // GetName returns CertificateProvisioningTagOptionInput.Name, and is useful for accessing the field via an interface.
   102  func (v *CertificateProvisioningTagOptionInput) GetName() string { return v.Name }
   103  
   104  // GetValue returns CertificateProvisioningTagOptionInput.Value, and is useful for accessing the field via an interface.
   105  func (v *CertificateProvisioningTagOptionInput) GetValue() string { return v.Value }
   106  
   107  // Indicates the type of a Cloud Keystore
   108  type CloudKeystoreType string
   109  
   110  const (
   111  	// AWS Certificate Manager
   112  	CloudKeystoreTypeAcm CloudKeystoreType = "ACM"
   113  	// Azure Key Vault
   114  	CloudKeystoreTypeAkv CloudKeystoreType = "AKV"
   115  	// Google Certificate Manager
   116  	CloudKeystoreTypeGcm CloudKeystoreType = "GCM"
   117  )
   118  
   119  // Indicates the status of a cloud provider
   120  type CloudProviderStatus string
   121  
   122  const (
   123  	// The cloud provider is successfully validated
   124  	CloudProviderStatusValidated CloudProviderStatus = "VALIDATED"
   125  	// The cloud provider is not validated or the validation fails for some reason
   126  	CloudProviderStatusNotValidated CloudProviderStatus = "NOT_VALIDATED"
   127  )
   128  
   129  // Indicates the type of a Cloud Provider
   130  type CloudProviderType string
   131  
   132  const (
   133  	// AWS cloud provider type
   134  	CloudProviderTypeAws CloudProviderType = "AWS"
   135  	// Azure cloud provider type
   136  	CloudProviderTypeAzure CloudProviderType = "AZURE"
   137  	// Google cloud provider type
   138  	CloudProviderTypeGcp CloudProviderType = "GCP"
   139  )
   140  
   141  // DeleteMachineIdentitiesResponse is returned by DeleteMachineIdentities on success.
   142  type DeleteMachineIdentitiesResponse struct {
   143  	// Deletes a list of Cloud machine identities
   144  	DeleteCloudMachineIdentities bool `json:"deleteCloudMachineIdentities"`
   145  }
   146  
   147  // GetDeleteCloudMachineIdentities returns DeleteMachineIdentitiesResponse.DeleteCloudMachineIdentities, and is useful for accessing the field via an interface.
   148  func (v *DeleteMachineIdentitiesResponse) GetDeleteCloudMachineIdentities() bool {
   149  	return v.DeleteCloudMachineIdentities
   150  }
   151  
   152  // Indicates the Scope for a certificate provisioned to GCP Certificate Manager
   153  type GCMCertificateScope string
   154  
   155  const (
   156  	// Certificates with default scope are served from core Google data centers. If unsure, choose this option.
   157  	GCMCertificateScopeDefault GCMCertificateScope = "DEFAULT"
   158  	// Certificates with scope EDGE_CACHE are special-purposed certificates, served from Edge Points of Presence.
   159  	// See https://cloud.google.com/vpc/docs/edge-locations.
   160  	GCMCertificateScopeEdgeCache GCMCertificateScope = "EDGE_CACHE"
   161  	// Certificates with ALL_REGIONS scope are served from all Google Cloud
   162  	// regions. See https://cloud.google.com/compute/docs/regions-zones.
   163  	GCMCertificateScopeAllRegions GCMCertificateScope = "ALL_REGIONS"
   164  )
   165  
   166  // GetCloudKeystoresCloudKeystoresCloudKeystoreConnection includes the requested fields of the GraphQL type CloudKeystoreConnection.
   167  // The GraphQL type's documentation follows.
   168  //
   169  // A page of CloudKeystore results
   170  type GetCloudKeystoresCloudKeystoresCloudKeystoreConnection struct {
   171  	// CloudKeystores in the current page, without cursor
   172  	Nodes []*GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore `json:"nodes"`
   173  }
   174  
   175  // GetNodes returns GetCloudKeystoresCloudKeystoresCloudKeystoreConnection.Nodes, and is useful for accessing the field via an interface.
   176  func (v *GetCloudKeystoresCloudKeystoresCloudKeystoreConnection) GetNodes() []*GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore {
   177  	return v.Nodes
   178  }
   179  
   180  // GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore includes the requested fields of the GraphQL type CloudKeystore.
   181  type GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore struct {
   182  	Id string `json:"id"`
   183  	// Cloud Keystore name
   184  	//
   185  	// A string between 3 and 250 characters
   186  	Name                   string            `json:"name"`
   187  	Type                   CloudKeystoreType `json:"type"`
   188  	MachineIdentitiesCount int               `json:"machineIdentitiesCount"`
   189  }
   190  
   191  // GetId returns GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore.Id, and is useful for accessing the field via an interface.
   192  func (v *GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore) GetId() string {
   193  	return v.Id
   194  }
   195  
   196  // GetName returns GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore.Name, and is useful for accessing the field via an interface.
   197  func (v *GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore) GetName() string {
   198  	return v.Name
   199  }
   200  
   201  // GetType returns GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore.Type, and is useful for accessing the field via an interface.
   202  func (v *GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore) GetType() CloudKeystoreType {
   203  	return v.Type
   204  }
   205  
   206  // GetMachineIdentitiesCount returns GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore.MachineIdentitiesCount, and is useful for accessing the field via an interface.
   207  func (v *GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore) GetMachineIdentitiesCount() int {
   208  	return v.MachineIdentitiesCount
   209  }
   210  
   211  // GetCloudKeystoresResponse is returned by GetCloudKeystores on success.
   212  type GetCloudKeystoresResponse struct {
   213  	// Retrieves Cloud Keystores.
   214  	// The pagination can be either forward or backward. To enable forward pagination, two arguments
   215  	// are used: `after` and `first`. To enable backward pagination, two arguments are used: `before` and `last`.
   216  	// If arguments for both forward and backward pagination are supplied, forward pagination wil be used. If no arguments
   217  	// are supplied, it returns the first page of 10 cloud keystores (i.e. defaults `first` to 10). The result is sorted by
   218  	// the added on date in ascending order.
   219  	// - after: returns the elements in the list that come after the specified cursor. Defaults to empty string, meaning
   220  	// that we return the first page of cloud providers, if `first` value is supplied
   221  	// - first: non-negative integer, denoting the first `n` number of records to return after the `after` cursor value.
   222  	// Max value is 100
   223  	// - before: returns the elements in the list that come before the specified cursor. By default is the empty string,
   224  	// meaning that the results will be the last page, if `last` value is supplied
   225  	// - last: non-negative integer, denoting the last `n` number of records to return before the `before` cursor value.
   226  	// Max value is 100
   227  	CloudKeystores *GetCloudKeystoresCloudKeystoresCloudKeystoreConnection `json:"cloudKeystores"`
   228  }
   229  
   230  // GetCloudKeystores returns GetCloudKeystoresResponse.CloudKeystores, and is useful for accessing the field via an interface.
   231  func (v *GetCloudKeystoresResponse) GetCloudKeystores() *GetCloudKeystoresCloudKeystoresCloudKeystoreConnection {
   232  	return v.CloudKeystores
   233  }
   234  
   235  // GetCloudProvidersCloudProvidersCloudProviderConnection includes the requested fields of the GraphQL type CloudProviderConnection.
   236  // The GraphQL type's documentation follows.
   237  //
   238  // A page of CloudProvider results
   239  type GetCloudProvidersCloudProvidersCloudProviderConnection struct {
   240  	// CloudProviders in the current page, without cursor
   241  	Nodes []*GetCloudProvidersCloudProvidersCloudProviderConnectionNodesCloudProvider `json:"nodes"`
   242  }
   243  
   244  // GetNodes returns GetCloudProvidersCloudProvidersCloudProviderConnection.Nodes, and is useful for accessing the field via an interface.
   245  func (v *GetCloudProvidersCloudProvidersCloudProviderConnection) GetNodes() []*GetCloudProvidersCloudProvidersCloudProviderConnectionNodesCloudProvider {
   246  	return v.Nodes
   247  }
   248  
   249  // GetCloudProvidersCloudProvidersCloudProviderConnectionNodesCloudProvider includes the requested fields of the GraphQL type CloudProvider.
   250  type GetCloudProvidersCloudProvidersCloudProviderConnectionNodesCloudProvider struct {
   251  	Id             string              `json:"id"`
   252  	Name           string              `json:"name"`
   253  	Type           CloudProviderType   `json:"type"`
   254  	Status         CloudProviderStatus `json:"status"`
   255  	StatusDetails  *string             `json:"statusDetails"`
   256  	KeystoresCount int                 `json:"keystoresCount"`
   257  }
   258  
   259  // GetId returns GetCloudProvidersCloudProvidersCloudProviderConnectionNodesCloudProvider.Id, and is useful for accessing the field via an interface.
   260  func (v *GetCloudProvidersCloudProvidersCloudProviderConnectionNodesCloudProvider) GetId() string {
   261  	return v.Id
   262  }
   263  
   264  // GetName returns GetCloudProvidersCloudProvidersCloudProviderConnectionNodesCloudProvider.Name, and is useful for accessing the field via an interface.
   265  func (v *GetCloudProvidersCloudProvidersCloudProviderConnectionNodesCloudProvider) GetName() string {
   266  	return v.Name
   267  }
   268  
   269  // GetType returns GetCloudProvidersCloudProvidersCloudProviderConnectionNodesCloudProvider.Type, and is useful for accessing the field via an interface.
   270  func (v *GetCloudProvidersCloudProvidersCloudProviderConnectionNodesCloudProvider) GetType() CloudProviderType {
   271  	return v.Type
   272  }
   273  
   274  // GetStatus returns GetCloudProvidersCloudProvidersCloudProviderConnectionNodesCloudProvider.Status, and is useful for accessing the field via an interface.
   275  func (v *GetCloudProvidersCloudProvidersCloudProviderConnectionNodesCloudProvider) GetStatus() CloudProviderStatus {
   276  	return v.Status
   277  }
   278  
   279  // GetStatusDetails returns GetCloudProvidersCloudProvidersCloudProviderConnectionNodesCloudProvider.StatusDetails, and is useful for accessing the field via an interface.
   280  func (v *GetCloudProvidersCloudProvidersCloudProviderConnectionNodesCloudProvider) GetStatusDetails() *string {
   281  	return v.StatusDetails
   282  }
   283  
   284  // GetKeystoresCount returns GetCloudProvidersCloudProvidersCloudProviderConnectionNodesCloudProvider.KeystoresCount, and is useful for accessing the field via an interface.
   285  func (v *GetCloudProvidersCloudProvidersCloudProviderConnectionNodesCloudProvider) GetKeystoresCount() int {
   286  	return v.KeystoresCount
   287  }
   288  
   289  // GetCloudProvidersResponse is returned by GetCloudProviders on success.
   290  type GetCloudProvidersResponse struct {
   291  	// Retrieves Cloud Providers.
   292  	// The pagination can be either forward or backward. To enable forward pagination, two arguments
   293  	// are used: `after` and `first`. To enable backward pagination, two arguments are used: `before` and `last`.
   294  	// If arguments for both forward and backward pagination are supplied, forward pagination wil be used. If no arguments
   295  	// are supplied, it returns the first page of 10 cloud providers (i.e. defaults `first` to 10). The result is sorted by
   296  	// the added on date in ascending order.
   297  	// - after: returns the elements in the list that come after the specified cursor. Defaults to empty string, meaning
   298  	// that we return the first page of cloud providers, if `first` value is supplied
   299  	// - first: non-negative integer, denoting the first `n` number of records to return after the `after` cursor value.
   300  	// Max value is 100
   301  	// - before: returns the elements in the list that come before the specified cursor. By default is the empty string,
   302  	// meaning that the results will be the last page, if `last` value is supplied
   303  	// - last: non-negative integer, denoting the last `n` number of records to return before the `before` cursor value.
   304  	// Max value is 100
   305  	CloudProviders *GetCloudProvidersCloudProvidersCloudProviderConnection `json:"cloudProviders"`
   306  }
   307  
   308  // GetCloudProviders returns GetCloudProvidersResponse.CloudProviders, and is useful for accessing the field via an interface.
   309  func (v *GetCloudProvidersResponse) GetCloudProviders() *GetCloudProvidersCloudProvidersCloudProviderConnection {
   310  	return v.CloudProviders
   311  }
   312  
   313  // GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnection includes the requested fields of the GraphQL type MachineIdentityConnection.
   314  // The GraphQL type's documentation follows.
   315  //
   316  // A page of MachineIdentity results
   317  type GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnection struct {
   318  	// MachineIdentity in the current page, without cursor
   319  	Nodes []*GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity `json:"nodes"`
   320  }
   321  
   322  // GetNodes returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnection.Nodes, and is useful for accessing the field via an interface.
   323  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnection) GetNodes() []*GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity {
   324  	return v.Nodes
   325  }
   326  
   327  // GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity includes the requested fields of the GraphQL type MachineIdentity.
   328  type GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity struct {
   329  	Id                string                                                                                                                   `json:"id"`
   330  	CloudKeystoreId   string                                                                                                                   `json:"cloudKeystoreId"`
   331  	CloudKeystoreName *string                                                                                                                  `json:"cloudKeystoreName"`
   332  	CloudProviderId   *string                                                                                                                  `json:"cloudProviderId"`
   333  	CloudProviderName *string                                                                                                                  `json:"cloudProviderName"`
   334  	Metadata          *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataCertificateCloudMetadata `json:"-"`
   335  	Status            MachineIdentityStatus                                                                                                    `json:"status"`
   336  	StatusDetails     *string                                                                                                                  `json:"statusDetails"`
   337  	CertificateId     string                                                                                                                   `json:"certificateId"`
   338  }
   339  
   340  // GetId returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity.Id, and is useful for accessing the field via an interface.
   341  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity) GetId() string {
   342  	return v.Id
   343  }
   344  
   345  // GetCloudKeystoreId returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity.CloudKeystoreId, and is useful for accessing the field via an interface.
   346  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity) GetCloudKeystoreId() string {
   347  	return v.CloudKeystoreId
   348  }
   349  
   350  // GetCloudKeystoreName returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity.CloudKeystoreName, and is useful for accessing the field via an interface.
   351  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity) GetCloudKeystoreName() *string {
   352  	return v.CloudKeystoreName
   353  }
   354  
   355  // GetCloudProviderId returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity.CloudProviderId, and is useful for accessing the field via an interface.
   356  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity) GetCloudProviderId() *string {
   357  	return v.CloudProviderId
   358  }
   359  
   360  // GetCloudProviderName returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity.CloudProviderName, and is useful for accessing the field via an interface.
   361  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity) GetCloudProviderName() *string {
   362  	return v.CloudProviderName
   363  }
   364  
   365  // GetMetadata returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity.Metadata, and is useful for accessing the field via an interface.
   366  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity) GetMetadata() *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataCertificateCloudMetadata {
   367  	return v.Metadata
   368  }
   369  
   370  // GetStatus returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity.Status, and is useful for accessing the field via an interface.
   371  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity) GetStatus() MachineIdentityStatus {
   372  	return v.Status
   373  }
   374  
   375  // GetStatusDetails returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity.StatusDetails, and is useful for accessing the field via an interface.
   376  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity) GetStatusDetails() *string {
   377  	return v.StatusDetails
   378  }
   379  
   380  // GetCertificateId returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity.CertificateId, and is useful for accessing the field via an interface.
   381  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity) GetCertificateId() string {
   382  	return v.CertificateId
   383  }
   384  
   385  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity) UnmarshalJSON(b []byte) error {
   386  
   387  	if string(b) == "null" {
   388  		return nil
   389  	}
   390  
   391  	var firstPass struct {
   392  		*GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity
   393  		Metadata json.RawMessage `json:"metadata"`
   394  		graphql.NoUnmarshalJSON
   395  	}
   396  	firstPass.GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity = v
   397  
   398  	err := json.Unmarshal(b, &firstPass)
   399  	if err != nil {
   400  		return err
   401  	}
   402  
   403  	{
   404  		dst := &v.Metadata
   405  		src := firstPass.Metadata
   406  		if len(src) != 0 && string(src) != "null" {
   407  			*dst = new(GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataCertificateCloudMetadata)
   408  			err = __unmarshalGetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataCertificateCloudMetadata(
   409  				src, *dst)
   410  			if err != nil {
   411  				return fmt.Errorf(
   412  					"unable to unmarshal GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity.Metadata: %w", err)
   413  			}
   414  		}
   415  	}
   416  	return nil
   417  }
   418  
   419  type __premarshalGetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity struct {
   420  	Id string `json:"id"`
   421  
   422  	CloudKeystoreId string `json:"cloudKeystoreId"`
   423  
   424  	CloudKeystoreName *string `json:"cloudKeystoreName"`
   425  
   426  	CloudProviderId *string `json:"cloudProviderId"`
   427  
   428  	CloudProviderName *string `json:"cloudProviderName"`
   429  
   430  	Metadata json.RawMessage `json:"metadata"`
   431  
   432  	Status MachineIdentityStatus `json:"status"`
   433  
   434  	StatusDetails *string `json:"statusDetails"`
   435  
   436  	CertificateId string `json:"certificateId"`
   437  }
   438  
   439  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity) MarshalJSON() ([]byte, error) {
   440  	premarshaled, err := v.__premarshalJSON()
   441  	if err != nil {
   442  		return nil, err
   443  	}
   444  	return json.Marshal(premarshaled)
   445  }
   446  
   447  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity) __premarshalJSON() (*__premarshalGetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity, error) {
   448  	var retval __premarshalGetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity
   449  
   450  	retval.Id = v.Id
   451  	retval.CloudKeystoreId = v.CloudKeystoreId
   452  	retval.CloudKeystoreName = v.CloudKeystoreName
   453  	retval.CloudProviderId = v.CloudProviderId
   454  	retval.CloudProviderName = v.CloudProviderName
   455  	{
   456  
   457  		dst := &retval.Metadata
   458  		src := v.Metadata
   459  		if src != nil {
   460  			var err error
   461  			*dst, err = __marshalGetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataCertificateCloudMetadata(
   462  				src)
   463  			if err != nil {
   464  				return nil, fmt.Errorf(
   465  					"unable to marshal GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentity.Metadata: %w", err)
   466  			}
   467  		}
   468  	}
   469  	retval.Status = v.Status
   470  	retval.StatusDetails = v.StatusDetails
   471  	retval.CertificateId = v.CertificateId
   472  	return &retval, nil
   473  }
   474  
   475  // GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAWSCertificateMetadata includes the requested fields of the GraphQL type AWSCertificateMetadata.
   476  type GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAWSCertificateMetadata struct {
   477  	Typename *string `json:"__typename"`
   478  	Arn      string  `json:"arn"`
   479  }
   480  
   481  // GetTypename returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAWSCertificateMetadata.Typename, and is useful for accessing the field via an interface.
   482  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAWSCertificateMetadata) GetTypename() *string {
   483  	return v.Typename
   484  }
   485  
   486  // GetArn returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAWSCertificateMetadata.Arn, and is useful for accessing the field via an interface.
   487  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAWSCertificateMetadata) GetArn() string {
   488  	return v.Arn
   489  }
   490  
   491  // GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAzureCertificateMetadata includes the requested fields of the GraphQL type AzureCertificateMetadata.
   492  type GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAzureCertificateMetadata struct {
   493  	Typename *string `json:"__typename"`
   494  	AzureId  string  `json:"azureId"`
   495  	Name     string  `json:"name"`
   496  	Version  string  `json:"version"`
   497  }
   498  
   499  // GetTypename returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAzureCertificateMetadata.Typename, and is useful for accessing the field via an interface.
   500  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAzureCertificateMetadata) GetTypename() *string {
   501  	return v.Typename
   502  }
   503  
   504  // GetAzureId returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAzureCertificateMetadata.AzureId, and is useful for accessing the field via an interface.
   505  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAzureCertificateMetadata) GetAzureId() string {
   506  	return v.AzureId
   507  }
   508  
   509  // GetName returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAzureCertificateMetadata.Name, and is useful for accessing the field via an interface.
   510  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAzureCertificateMetadata) GetName() string {
   511  	return v.Name
   512  }
   513  
   514  // GetVersion returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAzureCertificateMetadata.Version, and is useful for accessing the field via an interface.
   515  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAzureCertificateMetadata) GetVersion() string {
   516  	return v.Version
   517  }
   518  
   519  // GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataCertificateCloudMetadata includes the requested fields of the GraphQL interface CertificateCloudMetadata.
   520  //
   521  // GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataCertificateCloudMetadata is implemented by the following types:
   522  // GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAWSCertificateMetadata
   523  // GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAzureCertificateMetadata
   524  // GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataGCPCertificateMetadata
   525  type GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataCertificateCloudMetadata interface {
   526  	implementsGraphQLInterfaceGetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataCertificateCloudMetadata()
   527  	// GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values).
   528  	GetTypename() *string
   529  }
   530  
   531  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAWSCertificateMetadata) implementsGraphQLInterfaceGetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataCertificateCloudMetadata() {
   532  }
   533  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAzureCertificateMetadata) implementsGraphQLInterfaceGetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataCertificateCloudMetadata() {
   534  }
   535  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataGCPCertificateMetadata) implementsGraphQLInterfaceGetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataCertificateCloudMetadata() {
   536  }
   537  
   538  func __unmarshalGetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataCertificateCloudMetadata(b []byte, v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataCertificateCloudMetadata) error {
   539  	if string(b) == "null" {
   540  		return nil
   541  	}
   542  
   543  	var tn struct {
   544  		TypeName string `json:"__typename"`
   545  	}
   546  	err := json.Unmarshal(b, &tn)
   547  	if err != nil {
   548  		return err
   549  	}
   550  
   551  	switch tn.TypeName {
   552  	case "AWSCertificateMetadata":
   553  		*v = new(GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAWSCertificateMetadata)
   554  		return json.Unmarshal(b, *v)
   555  	case "AzureCertificateMetadata":
   556  		*v = new(GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAzureCertificateMetadata)
   557  		return json.Unmarshal(b, *v)
   558  	case "GCPCertificateMetadata":
   559  		*v = new(GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataGCPCertificateMetadata)
   560  		return json.Unmarshal(b, *v)
   561  	case "":
   562  		return fmt.Errorf(
   563  			"response was missing CertificateCloudMetadata.__typename")
   564  	default:
   565  		return fmt.Errorf(
   566  			`unexpected concrete type for GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataCertificateCloudMetadata: "%v"`, tn.TypeName)
   567  	}
   568  }
   569  
   570  func __marshalGetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataCertificateCloudMetadata(v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataCertificateCloudMetadata) ([]byte, error) {
   571  
   572  	var typename string
   573  	switch v := (*v).(type) {
   574  	case *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAWSCertificateMetadata:
   575  		typename = "AWSCertificateMetadata"
   576  
   577  		result := struct {
   578  			TypeName string `json:"__typename"`
   579  			*GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAWSCertificateMetadata
   580  		}{typename, v}
   581  		return json.Marshal(result)
   582  	case *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAzureCertificateMetadata:
   583  		typename = "AzureCertificateMetadata"
   584  
   585  		result := struct {
   586  			TypeName string `json:"__typename"`
   587  			*GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataAzureCertificateMetadata
   588  		}{typename, v}
   589  		return json.Marshal(result)
   590  	case *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataGCPCertificateMetadata:
   591  		typename = "GCPCertificateMetadata"
   592  
   593  		result := struct {
   594  			TypeName string `json:"__typename"`
   595  			*GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataGCPCertificateMetadata
   596  		}{typename, v}
   597  		return json.Marshal(result)
   598  	case nil:
   599  		return []byte("null"), nil
   600  	default:
   601  		return nil, fmt.Errorf(
   602  			`unexpected concrete type for GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataCertificateCloudMetadata: "%T"`, v)
   603  	}
   604  }
   605  
   606  // GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataGCPCertificateMetadata includes the requested fields of the GraphQL type GCPCertificateMetadata.
   607  type GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataGCPCertificateMetadata struct {
   608  	Typename *string `json:"__typename"`
   609  	GcpId    string  `json:"gcpId"`
   610  	Name     string  `json:"name"`
   611  }
   612  
   613  // GetTypename returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataGCPCertificateMetadata.Typename, and is useful for accessing the field via an interface.
   614  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataGCPCertificateMetadata) GetTypename() *string {
   615  	return v.Typename
   616  }
   617  
   618  // GetGcpId returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataGCPCertificateMetadata.GcpId, and is useful for accessing the field via an interface.
   619  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataGCPCertificateMetadata) GetGcpId() string {
   620  	return v.GcpId
   621  }
   622  
   623  // GetName returns GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataGCPCertificateMetadata.Name, and is useful for accessing the field via an interface.
   624  func (v *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnectionNodesMachineIdentityMetadataGCPCertificateMetadata) GetName() string {
   625  	return v.Name
   626  }
   627  
   628  // GetMachineIdentitiesResponse is returned by GetMachineIdentities on success.
   629  type GetMachineIdentitiesResponse struct {
   630  	// Retrieves machine identities for a Cloud Keystore.
   631  	// The pagination can be either forward or backward. To enable forward pagination, two arguments
   632  	// are used: `after` and `first`. To enable backward pagination, two arguments are used: `before` and `last`.
   633  	// If arguments for both forward and backward pagination are supplied, forward pagination wil be used. If no arguments
   634  	// are supplied, it returns the first page of 10 machine identities (i.e. defaults `first` to 10). The result is sorted by
   635  	// the added on date in descending order.
   636  	// - after: returns the elements in the list that come after the specified cursor. Defaults to empty string, meaning
   637  	// that we return the first page of certificates, if `first` value is supplied
   638  	// - first: non-negative integer, denoting the first `n` number of records to return after the `after` cursor value.
   639  	// Max value is 1000
   640  	// - before: returns the elements in the list that come before the specified cursor. By default is the empty string,
   641  	// meaning that the results will be the last page, if `last` value is supplied
   642  	// - last: non-negative integer, denoting the last `n` number of records to return before the `before` cursor value.
   643  	// Max value is 1000
   644  	CloudMachineIdentities *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnection `json:"cloudMachineIdentities"`
   645  }
   646  
   647  // GetCloudMachineIdentities returns GetMachineIdentitiesResponse.CloudMachineIdentities, and is useful for accessing the field via an interface.
   648  func (v *GetMachineIdentitiesResponse) GetCloudMachineIdentities() *GetMachineIdentitiesCloudMachineIdentitiesMachineIdentityConnection {
   649  	return v.CloudMachineIdentities
   650  }
   651  
   652  type MachineIdentityStatus string
   653  
   654  const (
   655  	MachineIdentityStatusNew        MachineIdentityStatus = "NEW"
   656  	MachineIdentityStatusPending    MachineIdentityStatus = "PENDING"
   657  	MachineIdentityStatusInstalled  MachineIdentityStatus = "INSTALLED"
   658  	MachineIdentityStatusDiscovered MachineIdentityStatus = "DISCOVERED"
   659  	MachineIdentityStatusValidated  MachineIdentityStatus = "VALIDATED"
   660  	MachineIdentityStatusMissing    MachineIdentityStatus = "MISSING"
   661  	MachineIdentityStatusFailed     MachineIdentityStatus = "FAILED"
   662  )
   663  
   664  // ProvisionCertificateProvisionToCloudKeystoreWorkflowResult includes the requested fields of the GraphQL type WorkflowResult.
   665  type ProvisionCertificateProvisionToCloudKeystoreWorkflowResult struct {
   666  	WorkflowId   string `json:"workflowId"`
   667  	WorkflowName string `json:"workflowName"`
   668  }
   669  
   670  // GetWorkflowId returns ProvisionCertificateProvisionToCloudKeystoreWorkflowResult.WorkflowId, and is useful for accessing the field via an interface.
   671  func (v *ProvisionCertificateProvisionToCloudKeystoreWorkflowResult) GetWorkflowId() string {
   672  	return v.WorkflowId
   673  }
   674  
   675  // GetWorkflowName returns ProvisionCertificateProvisionToCloudKeystoreWorkflowResult.WorkflowName, and is useful for accessing the field via an interface.
   676  func (v *ProvisionCertificateProvisionToCloudKeystoreWorkflowResult) GetWorkflowName() string {
   677  	return v.WorkflowName
   678  }
   679  
   680  // ProvisionCertificateResponse is returned by ProvisionCertificate on success.
   681  type ProvisionCertificateResponse struct {
   682  	// Provision a certificate to a Cloud Keystore
   683  	ProvisionToCloudKeystore *ProvisionCertificateProvisionToCloudKeystoreWorkflowResult `json:"provisionToCloudKeystore"`
   684  }
   685  
   686  // GetProvisionToCloudKeystore returns ProvisionCertificateResponse.ProvisionToCloudKeystore, and is useful for accessing the field via an interface.
   687  func (v *ProvisionCertificateResponse) GetProvisionToCloudKeystore() *ProvisionCertificateProvisionToCloudKeystoreWorkflowResult {
   688  	return v.ProvisionToCloudKeystore
   689  }
   690  
   691  // ProvisionCertificateToMachineIdentityProvisionToCloudMachineIdentityWorkflowResult includes the requested fields of the GraphQL type WorkflowResult.
   692  type ProvisionCertificateToMachineIdentityProvisionToCloudMachineIdentityWorkflowResult struct {
   693  	WorkflowId   string `json:"workflowId"`
   694  	WorkflowName string `json:"workflowName"`
   695  }
   696  
   697  // GetWorkflowId returns ProvisionCertificateToMachineIdentityProvisionToCloudMachineIdentityWorkflowResult.WorkflowId, and is useful for accessing the field via an interface.
   698  func (v *ProvisionCertificateToMachineIdentityProvisionToCloudMachineIdentityWorkflowResult) GetWorkflowId() string {
   699  	return v.WorkflowId
   700  }
   701  
   702  // GetWorkflowName returns ProvisionCertificateToMachineIdentityProvisionToCloudMachineIdentityWorkflowResult.WorkflowName, and is useful for accessing the field via an interface.
   703  func (v *ProvisionCertificateToMachineIdentityProvisionToCloudMachineIdentityWorkflowResult) GetWorkflowName() string {
   704  	return v.WorkflowName
   705  }
   706  
   707  // ProvisionCertificateToMachineIdentityResponse is returned by ProvisionCertificateToMachineIdentity on success.
   708  type ProvisionCertificateToMachineIdentityResponse struct {
   709  	// Provision to existing Cloud Machine Identity. If `certificateId` is not provided a re-provisioning of the existing certificate would be triggered
   710  	ProvisionToCloudMachineIdentity *ProvisionCertificateToMachineIdentityProvisionToCloudMachineIdentityWorkflowResult `json:"provisionToCloudMachineIdentity"`
   711  }
   712  
   713  // GetProvisionToCloudMachineIdentity returns ProvisionCertificateToMachineIdentityResponse.ProvisionToCloudMachineIdentity, and is useful for accessing the field via an interface.
   714  func (v *ProvisionCertificateToMachineIdentityResponse) GetProvisionToCloudMachineIdentity() *ProvisionCertificateToMachineIdentityProvisionToCloudMachineIdentityWorkflowResult {
   715  	return v.ProvisionToCloudMachineIdentity
   716  }
   717  
   718  // __DeleteMachineIdentitiesInput is used internally by genqlient
   719  type __DeleteMachineIdentitiesInput struct {
   720  	MachineIdentityIds []string `json:"machineIdentityIds"`
   721  }
   722  
   723  // GetMachineIdentityIds returns __DeleteMachineIdentitiesInput.MachineIdentityIds, and is useful for accessing the field via an interface.
   724  func (v *__DeleteMachineIdentitiesInput) GetMachineIdentityIds() []string {
   725  	return v.MachineIdentityIds
   726  }
   727  
   728  // __GetCloudKeystoresInput is used internally by genqlient
   729  type __GetCloudKeystoresInput struct {
   730  	CloudKeystoreId   *string `json:"cloudKeystoreId"`
   731  	CloudKeystoreName *string `json:"cloudKeystoreName"`
   732  	CloudProviderId   *string `json:"cloudProviderId"`
   733  	CloudProviderName *string `json:"cloudProviderName"`
   734  }
   735  
   736  // GetCloudKeystoreId returns __GetCloudKeystoresInput.CloudKeystoreId, and is useful for accessing the field via an interface.
   737  func (v *__GetCloudKeystoresInput) GetCloudKeystoreId() *string { return v.CloudKeystoreId }
   738  
   739  // GetCloudKeystoreName returns __GetCloudKeystoresInput.CloudKeystoreName, and is useful for accessing the field via an interface.
   740  func (v *__GetCloudKeystoresInput) GetCloudKeystoreName() *string { return v.CloudKeystoreName }
   741  
   742  // GetCloudProviderId returns __GetCloudKeystoresInput.CloudProviderId, and is useful for accessing the field via an interface.
   743  func (v *__GetCloudKeystoresInput) GetCloudProviderId() *string { return v.CloudProviderId }
   744  
   745  // GetCloudProviderName returns __GetCloudKeystoresInput.CloudProviderName, and is useful for accessing the field via an interface.
   746  func (v *__GetCloudKeystoresInput) GetCloudProviderName() *string { return v.CloudProviderName }
   747  
   748  // __GetCloudProvidersInput is used internally by genqlient
   749  type __GetCloudProvidersInput struct {
   750  	Status       *CloudProviderStatus `json:"status"`
   751  	ProviderType *CloudProviderType   `json:"providerType"`
   752  	Name         string               `json:"name"`
   753  }
   754  
   755  // GetStatus returns __GetCloudProvidersInput.Status, and is useful for accessing the field via an interface.
   756  func (v *__GetCloudProvidersInput) GetStatus() *CloudProviderStatus { return v.Status }
   757  
   758  // GetProviderType returns __GetCloudProvidersInput.ProviderType, and is useful for accessing the field via an interface.
   759  func (v *__GetCloudProvidersInput) GetProviderType() *CloudProviderType { return v.ProviderType }
   760  
   761  // GetName returns __GetCloudProvidersInput.Name, and is useful for accessing the field via an interface.
   762  func (v *__GetCloudProvidersInput) GetName() string { return v.Name }
   763  
   764  // __GetMachineIdentitiesInput is used internally by genqlient
   765  type __GetMachineIdentitiesInput struct {
   766  	CloudKeystoreId   *string  `json:"cloudKeystoreId"`
   767  	MachineIdentityId *string  `json:"machineIdentityId"`
   768  	Fingerprints      []string `json:"fingerprints"`
   769  	NewlyDiscovered   *bool    `json:"newlyDiscovered"`
   770  	Metadata          *string  `json:"metadata"`
   771  }
   772  
   773  // GetCloudKeystoreId returns __GetMachineIdentitiesInput.CloudKeystoreId, and is useful for accessing the field via an interface.
   774  func (v *__GetMachineIdentitiesInput) GetCloudKeystoreId() *string { return v.CloudKeystoreId }
   775  
   776  // GetMachineIdentityId returns __GetMachineIdentitiesInput.MachineIdentityId, and is useful for accessing the field via an interface.
   777  func (v *__GetMachineIdentitiesInput) GetMachineIdentityId() *string { return v.MachineIdentityId }
   778  
   779  // GetFingerprints returns __GetMachineIdentitiesInput.Fingerprints, and is useful for accessing the field via an interface.
   780  func (v *__GetMachineIdentitiesInput) GetFingerprints() []string { return v.Fingerprints }
   781  
   782  // GetNewlyDiscovered returns __GetMachineIdentitiesInput.NewlyDiscovered, and is useful for accessing the field via an interface.
   783  func (v *__GetMachineIdentitiesInput) GetNewlyDiscovered() *bool { return v.NewlyDiscovered }
   784  
   785  // GetMetadata returns __GetMachineIdentitiesInput.Metadata, and is useful for accessing the field via an interface.
   786  func (v *__GetMachineIdentitiesInput) GetMetadata() *string { return v.Metadata }
   787  
   788  // __ProvisionCertificateInput is used internally by genqlient
   789  type __ProvisionCertificateInput struct {
   790  	CertificateId   string                               `json:"certificateId"`
   791  	CloudKeystoreId string                               `json:"cloudKeystoreId"`
   792  	WsClientId      string                               `json:"wsClientId"`
   793  	Options         *CertificateProvisioningOptionsInput `json:"options,omitempty"`
   794  }
   795  
   796  // GetCertificateId returns __ProvisionCertificateInput.CertificateId, and is useful for accessing the field via an interface.
   797  func (v *__ProvisionCertificateInput) GetCertificateId() string { return v.CertificateId }
   798  
   799  // GetCloudKeystoreId returns __ProvisionCertificateInput.CloudKeystoreId, and is useful for accessing the field via an interface.
   800  func (v *__ProvisionCertificateInput) GetCloudKeystoreId() string { return v.CloudKeystoreId }
   801  
   802  // GetWsClientId returns __ProvisionCertificateInput.WsClientId, and is useful for accessing the field via an interface.
   803  func (v *__ProvisionCertificateInput) GetWsClientId() string { return v.WsClientId }
   804  
   805  // GetOptions returns __ProvisionCertificateInput.Options, and is useful for accessing the field via an interface.
   806  func (v *__ProvisionCertificateInput) GetOptions() *CertificateProvisioningOptionsInput {
   807  	return v.Options
   808  }
   809  
   810  // __ProvisionCertificateToMachineIdentityInput is used internally by genqlient
   811  type __ProvisionCertificateToMachineIdentityInput struct {
   812  	MachineIdentityId string  `json:"machineIdentityId"`
   813  	WsClientId        string  `json:"wsClientId"`
   814  	CertificateId     *string `json:"certificateId"`
   815  }
   816  
   817  // GetMachineIdentityId returns __ProvisionCertificateToMachineIdentityInput.MachineIdentityId, and is useful for accessing the field via an interface.
   818  func (v *__ProvisionCertificateToMachineIdentityInput) GetMachineIdentityId() string {
   819  	return v.MachineIdentityId
   820  }
   821  
   822  // GetWsClientId returns __ProvisionCertificateToMachineIdentityInput.WsClientId, and is useful for accessing the field via an interface.
   823  func (v *__ProvisionCertificateToMachineIdentityInput) GetWsClientId() string { return v.WsClientId }
   824  
   825  // GetCertificateId returns __ProvisionCertificateToMachineIdentityInput.CertificateId, and is useful for accessing the field via an interface.
   826  func (v *__ProvisionCertificateToMachineIdentityInput) GetCertificateId() *string {
   827  	return v.CertificateId
   828  }
   829  
   830  // The query or mutation executed by DeleteMachineIdentities.
   831  const DeleteMachineIdentities_Operation = `
   832  mutation DeleteMachineIdentities ($machineIdentityIds: [UUID!]!) {
   833  	deleteCloudMachineIdentities(machineIdentityIds: $machineIdentityIds)
   834  }
   835  `
   836  
   837  func DeleteMachineIdentities(
   838  	ctx_ context.Context,
   839  	client_ graphql.Client,
   840  	machineIdentityIds []string,
   841  ) (*DeleteMachineIdentitiesResponse, error) {
   842  	req_ := &graphql.Request{
   843  		OpName: "DeleteMachineIdentities",
   844  		Query:  DeleteMachineIdentities_Operation,
   845  		Variables: &__DeleteMachineIdentitiesInput{
   846  			MachineIdentityIds: machineIdentityIds,
   847  		},
   848  	}
   849  	var err_ error
   850  
   851  	var data_ DeleteMachineIdentitiesResponse
   852  	resp_ := &graphql.Response{Data: &data_}
   853  
   854  	err_ = client_.MakeRequest(
   855  		ctx_,
   856  		req_,
   857  		resp_,
   858  	)
   859  
   860  	return &data_, err_
   861  }
   862  
   863  // The query or mutation executed by GetCloudKeystores.
   864  const GetCloudKeystores_Operation = `
   865  query GetCloudKeystores ($cloudKeystoreId: UUID, $cloudKeystoreName: String, $cloudProviderId: UUID, $cloudProviderName: String) {
   866  	cloudKeystores(filter: {cloudKeystoreId:$cloudKeystoreId,cloudKeystoreName:$cloudKeystoreName,cloudProviderId:$cloudProviderId,cloudProviderName:$cloudProviderName}) {
   867  		nodes {
   868  			id
   869  			name
   870  			type
   871  			machineIdentitiesCount
   872  		}
   873  	}
   874  }
   875  `
   876  
   877  func GetCloudKeystores(
   878  	ctx_ context.Context,
   879  	client_ graphql.Client,
   880  	cloudKeystoreId *string,
   881  	cloudKeystoreName *string,
   882  	cloudProviderId *string,
   883  	cloudProviderName *string,
   884  ) (*GetCloudKeystoresResponse, error) {
   885  	req_ := &graphql.Request{
   886  		OpName: "GetCloudKeystores",
   887  		Query:  GetCloudKeystores_Operation,
   888  		Variables: &__GetCloudKeystoresInput{
   889  			CloudKeystoreId:   cloudKeystoreId,
   890  			CloudKeystoreName: cloudKeystoreName,
   891  			CloudProviderId:   cloudProviderId,
   892  			CloudProviderName: cloudProviderName,
   893  		},
   894  	}
   895  	var err_ error
   896  
   897  	var data_ GetCloudKeystoresResponse
   898  	resp_ := &graphql.Response{Data: &data_}
   899  
   900  	err_ = client_.MakeRequest(
   901  		ctx_,
   902  		req_,
   903  		resp_,
   904  	)
   905  
   906  	return &data_, err_
   907  }
   908  
   909  // The query or mutation executed by GetCloudProviders.
   910  const GetCloudProviders_Operation = `
   911  query GetCloudProviders ($status: CloudProviderStatus, $providerType: CloudProviderType, $name: String!) {
   912  	cloudProviders(filter: {status:$status,type:$providerType,name:$name}) {
   913  		nodes {
   914  			id
   915  			name
   916  			type
   917  			status
   918  			statusDetails
   919  			keystoresCount
   920  		}
   921  	}
   922  }
   923  `
   924  
   925  func GetCloudProviders(
   926  	ctx_ context.Context,
   927  	client_ graphql.Client,
   928  	status *CloudProviderStatus,
   929  	providerType *CloudProviderType,
   930  	name string,
   931  ) (*GetCloudProvidersResponse, error) {
   932  	req_ := &graphql.Request{
   933  		OpName: "GetCloudProviders",
   934  		Query:  GetCloudProviders_Operation,
   935  		Variables: &__GetCloudProvidersInput{
   936  			Status:       status,
   937  			ProviderType: providerType,
   938  			Name:         name,
   939  		},
   940  	}
   941  	var err_ error
   942  
   943  	var data_ GetCloudProvidersResponse
   944  	resp_ := &graphql.Response{Data: &data_}
   945  
   946  	err_ = client_.MakeRequest(
   947  		ctx_,
   948  		req_,
   949  		resp_,
   950  	)
   951  
   952  	return &data_, err_
   953  }
   954  
   955  // The query or mutation executed by GetMachineIdentities.
   956  const GetMachineIdentities_Operation = `
   957  query GetMachineIdentities ($cloudKeystoreId: UUID, $machineIdentityId: UUID, $fingerprints: [String!], $newlyDiscovered: Boolean, $metadata: String) {
   958  	cloudMachineIdentities(filter: {cloudKeystoreId:$cloudKeystoreId,machineIdentityId:$machineIdentityId,fingerprints:$fingerprints,newlyDiscovered:$newlyDiscovered,metadata:$metadata}) {
   959  		nodes {
   960  			id
   961  			cloudKeystoreId
   962  			cloudKeystoreName
   963  			cloudProviderId
   964  			cloudProviderName
   965  			metadata {
   966  				__typename
   967  				... on AWSCertificateMetadata {
   968  					arn
   969  				}
   970  				... on AzureCertificateMetadata {
   971  					azureId
   972  					name
   973  					version
   974  				}
   975  				... on GCPCertificateMetadata {
   976  					gcpId
   977  					name
   978  				}
   979  			}
   980  			status
   981  			statusDetails
   982  			certificateId
   983  		}
   984  	}
   985  }
   986  `
   987  
   988  func GetMachineIdentities(
   989  	ctx_ context.Context,
   990  	client_ graphql.Client,
   991  	cloudKeystoreId *string,
   992  	machineIdentityId *string,
   993  	fingerprints []string,
   994  	newlyDiscovered *bool,
   995  	metadata *string,
   996  ) (*GetMachineIdentitiesResponse, error) {
   997  	req_ := &graphql.Request{
   998  		OpName: "GetMachineIdentities",
   999  		Query:  GetMachineIdentities_Operation,
  1000  		Variables: &__GetMachineIdentitiesInput{
  1001  			CloudKeystoreId:   cloudKeystoreId,
  1002  			MachineIdentityId: machineIdentityId,
  1003  			Fingerprints:      fingerprints,
  1004  			NewlyDiscovered:   newlyDiscovered,
  1005  			Metadata:          metadata,
  1006  		},
  1007  	}
  1008  	var err_ error
  1009  
  1010  	var data_ GetMachineIdentitiesResponse
  1011  	resp_ := &graphql.Response{Data: &data_}
  1012  
  1013  	err_ = client_.MakeRequest(
  1014  		ctx_,
  1015  		req_,
  1016  		resp_,
  1017  	)
  1018  
  1019  	return &data_, err_
  1020  }
  1021  
  1022  // The query or mutation executed by ProvisionCertificate.
  1023  const ProvisionCertificate_Operation = `
  1024  mutation ProvisionCertificate ($certificateId: UUID!, $cloudKeystoreId: UUID!, $wsClientId: UUID!, $options: CertificateProvisioningOptionsInput) {
  1025  	provisionToCloudKeystore(certificateId: $certificateId, cloudKeystoreId: $cloudKeystoreId, wsClientId: $wsClientId, options: $options) {
  1026  		workflowId
  1027  		workflowName
  1028  	}
  1029  }
  1030  `
  1031  
  1032  func ProvisionCertificate(
  1033  	ctx_ context.Context,
  1034  	client_ graphql.Client,
  1035  	certificateId string,
  1036  	cloudKeystoreId string,
  1037  	wsClientId string,
  1038  	options *CertificateProvisioningOptionsInput,
  1039  ) (*ProvisionCertificateResponse, error) {
  1040  	req_ := &graphql.Request{
  1041  		OpName: "ProvisionCertificate",
  1042  		Query:  ProvisionCertificate_Operation,
  1043  		Variables: &__ProvisionCertificateInput{
  1044  			CertificateId:   certificateId,
  1045  			CloudKeystoreId: cloudKeystoreId,
  1046  			WsClientId:      wsClientId,
  1047  			Options:         options,
  1048  		},
  1049  	}
  1050  	var err_ error
  1051  
  1052  	var data_ ProvisionCertificateResponse
  1053  	resp_ := &graphql.Response{Data: &data_}
  1054  
  1055  	err_ = client_.MakeRequest(
  1056  		ctx_,
  1057  		req_,
  1058  		resp_,
  1059  	)
  1060  
  1061  	return &data_, err_
  1062  }
  1063  
  1064  // The query or mutation executed by ProvisionCertificateToMachineIdentity.
  1065  const ProvisionCertificateToMachineIdentity_Operation = `
  1066  mutation ProvisionCertificateToMachineIdentity ($machineIdentityId: UUID!, $wsClientId: UUID!, $certificateId: UUID) {
  1067  	provisionToCloudMachineIdentity(machineIdentityId: $machineIdentityId, wsClientId: $wsClientId, certificateId: $certificateId) {
  1068  		workflowId
  1069  		workflowName
  1070  	}
  1071  }
  1072  `
  1073  
  1074  func ProvisionCertificateToMachineIdentity(
  1075  	ctx_ context.Context,
  1076  	client_ graphql.Client,
  1077  	machineIdentityId string,
  1078  	wsClientId string,
  1079  	certificateId *string,
  1080  ) (*ProvisionCertificateToMachineIdentityResponse, error) {
  1081  	req_ := &graphql.Request{
  1082  		OpName: "ProvisionCertificateToMachineIdentity",
  1083  		Query:  ProvisionCertificateToMachineIdentity_Operation,
  1084  		Variables: &__ProvisionCertificateToMachineIdentityInput{
  1085  			MachineIdentityId: machineIdentityId,
  1086  			WsClientId:        wsClientId,
  1087  			CertificateId:     certificateId,
  1088  		},
  1089  	}
  1090  	var err_ error
  1091  
  1092  	var data_ ProvisionCertificateToMachineIdentityResponse
  1093  	resp_ := &graphql.Response{Data: &data_}
  1094  
  1095  	err_ = client_.MakeRequest(
  1096  		ctx_,
  1097  		req_,
  1098  		resp_,
  1099  	)
  1100  
  1101  	return &data_, err_
  1102  }