Skip to content

Commit

Permalink
feat(all): auto-regenerate discovery clients (#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed May 31, 2022
1 parent 8bbd389 commit 1463524
Show file tree
Hide file tree
Showing 22 changed files with 3,185 additions and 289 deletions.
3 changes: 2 additions & 1 deletion certificatemanager/v1/certificatemanager-api.json
Expand Up @@ -975,7 +975,7 @@
}
}
},
"revision": "20220407",
"revision": "20220523",
"rootUrl": "https://certificatemanager.googleapis.com/",
"schemas": {
"AuthorizationAttemptInfo": {
Expand Down Expand Up @@ -1649,6 +1649,7 @@
"type": "object"
},
"ResourcesCount": {
"description": "ResourcesCount represents the resource that stores aggregated project's info in the given location, e.g.: total number of certificates assigned to the project.",
"id": "ResourcesCount",
"properties": {
"certificates": {
Expand Down
3 changes: 3 additions & 0 deletions certificatemanager/v1/certificatemanager-gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 30 additions & 4 deletions compute/v0.alpha/compute-api.json
Expand Up @@ -11941,7 +11941,7 @@
]
},
"setScheduling": {
"description": "Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM availability policies.",
"description": "Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM host maintenance policy.",
"flatPath": "projects/{project}/zones/{zone}/instances/{instance}/setScheduling",
"httpMethod": "POST",
"id": "compute.instances.setScheduling",
Expand Down Expand Up @@ -38709,7 +38709,7 @@
}
}
},
"revision": "20220510",
"revision": "20220517",
"rootUrl": "https://compute.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
Expand Down Expand Up @@ -41386,7 +41386,7 @@
"id": "BackendService",
"properties": {
"affinityCookieTtlSec": {
"description": "Lifetime of cookies in seconds. This setting is applicable to external and internal HTTP(S) load balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is one day (86,400). Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.",
"description": "Lifetime of cookies in seconds. This setting is applicable to external and internal HTTP(S) load balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is two weeks (1,209,600). Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.",
"format": "int32",
"type": "integer"
},
Expand Down Expand Up @@ -68945,7 +68945,7 @@
"type": "array"
},
"onHostMaintenance": {
"description": "Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM availability policies.",
"description": "Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy.",
"enum": [
"MIGRATE",
"TERMINATE"
Expand Down Expand Up @@ -69408,13 +69408,39 @@
"description": "Configuration options for Cloud Armor Adaptive Protection (CAAP).",
"id": "SecurityPolicyAdaptiveProtectionConfig",
"properties": {
"autoDeployConfig": {
"$ref": "SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig"
},
"layer7DdosDefenseConfig": {
"$ref": "SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig",
"description": "If set to true, enables Cloud Armor Machine Learning."
}
},
"type": "object"
},
"SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig": {
"description": "Configuration options for Adaptive Protection auto-deploy feature.",
"id": "SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig",
"properties": {
"confidenceThreshold": {
"format": "float",
"type": "number"
},
"expirationSec": {
"format": "int32",
"type": "integer"
},
"impactedBaselineThreshold": {
"format": "float",
"type": "number"
},
"loadThreshold": {
"format": "float",
"type": "number"
}
},
"type": "object"
},
"SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig": {
"description": "Configuration options for L7 DDoS detection.",
"id": "SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig",
Expand Down
90 changes: 72 additions & 18 deletions compute/v0.alpha/compute-gen.go
Expand Up @@ -5566,9 +5566,9 @@ type BackendService struct {
// Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session
// affinity. If set to 0, the cookie is non-persistent and lasts only
// until the end of the browser session (or equivalent). The maximum
// allowed value is one day (86,400). Not supported when the backend
// service is referenced by a URL map that is bound to target gRPC proxy
// that has validateForProxyless field set to true.
// allowed value is two weeks (1,209,600). Not supported when the
// backend service is referenced by a URL map that is bound to target
// gRPC proxy that has validateForProxyless field set to true.
AffinityCookieTtlSec int64 `json:"affinityCookieTtlSec,omitempty"`

// Backends: The list of backends that serve this BackendService.
Expand Down Expand Up @@ -48516,7 +48516,7 @@ type Scheduling struct {
// OnHostMaintenance: Defines the maintenance behavior for this
// instance. For standard instances, the default behavior is MIGRATE.
// For preemptible instances, the default and only possible behavior is
// TERMINATE. For more information, see Set VM availability policies.
// TERMINATE. For more information, see Set VM host maintenance policy.
//
// Possible values:
// "MIGRATE" - *[Default]* Allows Compute Engine to automatically
Expand Down Expand Up @@ -49251,23 +49251,24 @@ func (s *SecurityPolicy) MarshalJSON() ([]byte, error) {
// SecurityPolicyAdaptiveProtectionConfig: Configuration options for
// Cloud Armor Adaptive Protection (CAAP).
type SecurityPolicyAdaptiveProtectionConfig struct {
AutoDeployConfig *SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig `json:"autoDeployConfig,omitempty"`

// Layer7DdosDefenseConfig: If set to true, enables Cloud Armor Machine
// Learning.
Layer7DdosDefenseConfig *SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig `json:"layer7DdosDefenseConfig,omitempty"`

// ForceSendFields is a list of field names (e.g.
// "Layer7DdosDefenseConfig") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted
// from API requests. However, any non-pointer, non-interface field
// appearing in ForceSendFields will be sent to the server regardless of
// whether the field is empty or not. This may be used to include empty
// fields in Patch requests.
// ForceSendFields is a list of field names (e.g. "AutoDeployConfig") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`

// NullFields is a list of field names (e.g. "Layer7DdosDefenseConfig")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// NullFields is a list of field names (e.g. "AutoDeployConfig") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
Expand All @@ -49280,6 +49281,59 @@ func (s *SecurityPolicyAdaptiveProtectionConfig) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}

// SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig: Configuration
// options for Adaptive Protection auto-deploy feature.
type SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig struct {
ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"`

ExpirationSec int64 `json:"expirationSec,omitempty"`

ImpactedBaselineThreshold float64 `json:"impactedBaselineThreshold,omitempty"`

LoadThreshold float64 `json:"loadThreshold,omitempty"`

// ForceSendFields is a list of field names (e.g. "ConfidenceThreshold")
// to unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`

// NullFields is a list of field names (e.g. "ConfidenceThreshold") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}

func (s *SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig) MarshalJSON() ([]byte, error) {
type NoMethod SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}

func (s *SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig) UnmarshalJSON(data []byte) error {
type NoMethod SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig
var s1 struct {
ConfidenceThreshold gensupport.JSONFloat64 `json:"confidenceThreshold"`
ImpactedBaselineThreshold gensupport.JSONFloat64 `json:"impactedBaselineThreshold"`
LoadThreshold gensupport.JSONFloat64 `json:"loadThreshold"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.ConfidenceThreshold = float64(s1.ConfidenceThreshold)
s.ImpactedBaselineThreshold = float64(s1.ImpactedBaselineThreshold)
s.LoadThreshold = float64(s1.LoadThreshold)
return nil
}

// SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig:
// Configuration options for L7 DDoS detection.
type SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig struct {
Expand Down Expand Up @@ -114035,8 +114089,8 @@ type InstancesSetSchedulingCall struct {
// call this method on a stopped instance, that is, a VM instance that
// is in a `TERMINATED` state. See Instance Life Cycle for more
// information on the possible instance states. For more information
// about setting scheduling options for a VM, see Set VM availability
// policies.
// about setting scheduling options for a VM, see Set VM host
// maintenance policy.
//
// - instance: Instance name for this request.
// - project: Project ID for this request.
Expand Down Expand Up @@ -114159,7 +114213,7 @@ func (c *InstancesSetSchedulingCall) Do(opts ...googleapi.CallOption) (*Operatio
}
return ret, nil
// {
// "description": "Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM availability policies.",
// "description": "Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM host maintenance policy.",
// "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/setScheduling",
// "httpMethod": "POST",
// "id": "compute.instances.setScheduling",
Expand Down
42 changes: 38 additions & 4 deletions compute/v0.beta/compute-api.json
Expand Up @@ -11165,7 +11165,7 @@
]
},
"setScheduling": {
"description": "Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM availability policies.",
"description": "Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM host maintenance policy.",
"flatPath": "projects/{project}/zones/{zone}/instances/{instance}/setScheduling",
"httpMethod": "POST",
"id": "compute.instances.setScheduling",
Expand Down Expand Up @@ -35452,7 +35452,7 @@
}
}
},
"revision": "20220510",
"revision": "20220517",
"rootUrl": "https://compute.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
Expand Down Expand Up @@ -37948,7 +37948,7 @@
"id": "BackendService",
"properties": {
"affinityCookieTtlSec": {
"description": "Lifetime of cookies in seconds. This setting is applicable to external and internal HTTP(S) load balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is one day (86,400). Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.",
"description": "Lifetime of cookies in seconds. This setting is applicable to external and internal HTTP(S) load balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is two weeks (1,209,600). Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.",
"format": "int32",
"type": "integer"
},
Expand Down Expand Up @@ -61933,7 +61933,7 @@
"type": "array"
},
"onHostMaintenance": {
"description": "Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM availability policies.",
"description": "Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy.",
"enum": [
"MIGRATE",
"TERMINATE"
Expand Down Expand Up @@ -62376,13 +62376,39 @@
"description": "Configuration options for Cloud Armor Adaptive Protection (CAAP).",
"id": "SecurityPolicyAdaptiveProtectionConfig",
"properties": {
"autoDeployConfig": {
"$ref": "SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig"
},
"layer7DdosDefenseConfig": {
"$ref": "SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig",
"description": "If set to true, enables Cloud Armor Machine Learning."
}
},
"type": "object"
},
"SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig": {
"description": "Configuration options for Adaptive Protection auto-deploy feature.",
"id": "SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig",
"properties": {
"confidenceThreshold": {
"format": "float",
"type": "number"
},
"expirationSec": {
"format": "int32",
"type": "integer"
},
"impactedBaselineThreshold": {
"format": "float",
"type": "number"
},
"loadThreshold": {
"format": "float",
"type": "number"
}
},
"type": "object"
},
"SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig": {
"description": "Configuration options for L7 DDoS detection.",
"id": "SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig",
Expand Down Expand Up @@ -63778,6 +63804,14 @@
"description": "[Output Only] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.",
"type": "string"
},
"sourceSnapshotSchedulePolicy": {
"description": "[Output Only] URL of the resource policy which created this scheduled snapshot.",
"type": "string"
},
"sourceSnapshotSchedulePolicyId": {
"description": "[Output Only] ID of the resource policy which created this scheduled snapshot.",
"type": "string"
},
"status": {
"description": "[Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING.",
"enum": [
Expand Down

0 comments on commit 1463524

Please sign in to comment.