From 194ebe8905d2edb38b40f5d63f3c4e1f7e0fc9f0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 28 May 2022 07:13:11 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- .../v1/certificatemanager-api.json | 3 +- .../v1/certificatemanager-gen.go | 3 + compute/v0.alpha/compute-api.json | 34 +- compute/v0.alpha/compute-gen.go | 90 +- compute/v0.beta/compute-api.json | 42 +- compute/v0.beta/compute-gen.go | 98 +- compute/v1/compute-api.json | 8 +- compute/v1/compute-gen.go | 14 +- dataproc/v1/dataproc-api.json | 79 +- dataproc/v1/dataproc-gen.go | 183 +- datastore/v1/datastore-api.json | 6 +- datastore/v1/datastore-gen.go | 8 +- datastore/v1beta3/datastore-api.json | 6 +- datastore/v1beta3/datastore-gen.go | 8 +- displayvideo/v1/displayvideo-api.json | 827 ++++++- displayvideo/v1/displayvideo-gen.go | 2008 ++++++++++++++++- jobs/v4/jobs-api.json | 12 +- jobs/v4/jobs-gen.go | 27 +- servicedirectory/v1/servicedirectory-api.json | 4 +- servicedirectory/v1/servicedirectory-gen.go | 5 +- .../v1beta1/servicedirectory-api.json | 4 +- .../v1beta1/servicedirectory-gen.go | 5 +- 22 files changed, 3185 insertions(+), 289 deletions(-) diff --git a/certificatemanager/v1/certificatemanager-api.json b/certificatemanager/v1/certificatemanager-api.json index 41c4e7e6d13..bdfd6afb989 100644 --- a/certificatemanager/v1/certificatemanager-api.json +++ b/certificatemanager/v1/certificatemanager-api.json @@ -975,7 +975,7 @@ } } }, - "revision": "20220407", + "revision": "20220523", "rootUrl": "https://certificatemanager.googleapis.com/", "schemas": { "AuthorizationAttemptInfo": { @@ -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": { diff --git a/certificatemanager/v1/certificatemanager-gen.go b/certificatemanager/v1/certificatemanager-gen.go index 4ce3b45819e..af77e3fb215 100644 --- a/certificatemanager/v1/certificatemanager-gen.go +++ b/certificatemanager/v1/certificatemanager-gen.go @@ -1181,6 +1181,9 @@ func (s *ProvisioningIssue) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ResourcesCount: ResourcesCount represents the resource that stores +// aggregated project's info in the given location, e.g.: total number +// of certificates assigned to the project. type ResourcesCount struct { // Certificates: The count of certificates. Certificates uint64 `json:"certificates,omitempty,string"` diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index 2b3cfe0aa25..807954a4378 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -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", @@ -38709,7 +38709,7 @@ } } }, - "revision": "20220510", + "revision": "20220517", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -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" }, @@ -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" @@ -69408,6 +69408,9 @@ "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." @@ -69415,6 +69418,29 @@ }, "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", diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index 6d27d105819..07bb92f4ef4 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -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. @@ -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 @@ -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. @@ -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 { @@ -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. @@ -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", diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index 29531b52759..9c28d8e74bf 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -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", @@ -35452,7 +35452,7 @@ } } }, - "revision": "20220510", + "revision": "20220517", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -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" }, @@ -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" @@ -62376,6 +62376,9 @@ "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." @@ -62383,6 +62386,29 @@ }, "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", @@ -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": [ diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index 85d667c0b51..f002b689e7a 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -5314,9 +5314,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. @@ -42791,7 +42791,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 @@ -43487,23 +43487,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. @@ -43516,6 +43517,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 { @@ -45784,6 +45838,14 @@ type Snapshot struct { // disk name. SourceDiskId string `json:"sourceDiskId,omitempty"` + // SourceSnapshotSchedulePolicy: [Output Only] URL of the resource + // policy which created this scheduled snapshot. + SourceSnapshotSchedulePolicy string `json:"sourceSnapshotSchedulePolicy,omitempty"` + + // SourceSnapshotSchedulePolicyId: [Output Only] ID of the resource + // policy which created this scheduled snapshot. + SourceSnapshotSchedulePolicyId string `json:"sourceSnapshotSchedulePolicyId,omitempty"` + // Status: [Output Only] The status of the snapshot. This can be // CREATING, DELETING, FAILED, READY, or UPLOADING. // @@ -104323,8 +104385,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. @@ -104447,7 +104509,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", diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index ae4d579c67a..c1cdec764e1 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -10087,7 +10087,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", @@ -31157,7 +31157,7 @@ } } }, - "revision": "20220510", + "revision": "20220517", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -33566,7 +33566,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" }, @@ -56733,7 +56733,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" diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index fc5f29a289d..d6cfa203c8c 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -5158,9 +5158,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. @@ -41323,7 +41323,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 @@ -97588,8 +97588,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. @@ -97712,7 +97712,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", diff --git a/dataproc/v1/dataproc-api.json b/dataproc/v1/dataproc-api.json index 9c2f1ff46a1..0f85a840c46 100644 --- a/dataproc/v1/dataproc-api.json +++ b/dataproc/v1/dataproc-api.json @@ -199,7 +199,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/autoscalingPolicies/[^/]+$", "required": true, @@ -263,7 +263,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/autoscalingPolicies/[^/]+$", "required": true, @@ -291,7 +291,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/autoscalingPolicies/[^/]+$", "required": true, @@ -569,7 +569,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", "required": true, @@ -694,7 +694,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", "required": true, @@ -722,7 +722,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", "required": true, @@ -864,7 +864,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", "required": true, @@ -928,7 +928,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", "required": true, @@ -956,7 +956,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", "required": true, @@ -1197,7 +1197,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", "required": true, @@ -1415,7 +1415,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", "required": true, @@ -1525,7 +1525,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", "required": true, @@ -1674,7 +1674,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/regions/[^/]+/jobs/[^/]+$", "required": true, @@ -1816,7 +1816,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/regions/[^/]+/jobs/[^/]+$", "required": true, @@ -1912,7 +1912,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/regions/[^/]+/jobs/[^/]+$", "required": true, @@ -2019,7 +2019,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", "required": true, @@ -2088,7 +2088,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", "required": true, @@ -2116,7 +2116,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", "required": true, @@ -2238,7 +2238,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", "required": true, @@ -2363,7 +2363,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", "required": true, @@ -2391,7 +2391,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", "required": true, @@ -2444,7 +2444,7 @@ } } }, - "revision": "20220429", + "revision": "20220511", "rootUrl": "https://dataproc.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2463,31 +2463,6 @@ }, "type": "object" }, - "AuthenticationConfig": { - "description": "Configuration for using injectable credentials or service account", - "id": "AuthenticationConfig", - "properties": { - "authenticationType": { - "description": "Authentication type for session execution.", - "enum": [ - "AUTHENTICATION_TYPE_UNSPECIFIED", - "SERVICE_ACCOUNT", - "INJECTABLE_CREDENTIALS" - ], - "enumDescriptions": [ - "If AuthenticationType is unspecified, SERVICE_ACCOUNT is used", - "Defaults to using service account credentials", - "Injectable credentials authentication type" - ], - "type": "string" - }, - "injectableCredentialsConfig": { - "$ref": "InjectableCredentialsConfig", - "description": "Configuration for using end user authentication" - } - }, - "type": "object" - }, "AutoscalingConfig": { "description": "Autoscaling Policy config associated with the cluster.", "id": "AutoscalingConfig", @@ -3692,12 +3667,6 @@ }, "type": "object" }, - "InjectableCredentialsConfig": { - "description": "Specific injectable credentials authentication parameters", - "id": "InjectableCredentialsConfig", - "properties": {}, - "type": "object" - }, "InstanceGroupAutoscalingPolicyConfig": { "description": "Configuration for the size bounds of an instance group, including its proportional size to other groups.", "id": "InstanceGroupAutoscalingPolicyConfig", @@ -4932,10 +4901,6 @@ "description": "Optional. A mapping of property names to values, which are used to configure workload execution.", "type": "object" }, - "sessionAuthenticationConfig": { - "$ref": "AuthenticationConfig", - "description": "Optional. Authentication configuration for the session execution." - }, "version": { "description": "Optional. Version of the batch runtime.", "type": "string" diff --git a/dataproc/v1/dataproc-gen.go b/dataproc/v1/dataproc-gen.go index 703479e0f76..da8a5573db7 100644 --- a/dataproc/v1/dataproc-gen.go +++ b/dataproc/v1/dataproc-gen.go @@ -313,47 +313,6 @@ func (s *AcceleratorConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AuthenticationConfig: Configuration for using injectable credentials -// or service account -type AuthenticationConfig struct { - // AuthenticationType: Authentication type for session execution. - // - // Possible values: - // "AUTHENTICATION_TYPE_UNSPECIFIED" - If AuthenticationType is - // unspecified, SERVICE_ACCOUNT is used - // "SERVICE_ACCOUNT" - Defaults to using service account credentials - // "INJECTABLE_CREDENTIALS" - Injectable credentials authentication - // type - AuthenticationType string `json:"authenticationType,omitempty"` - - // InjectableCredentialsConfig: Configuration for using end user - // authentication - InjectableCredentialsConfig *InjectableCredentialsConfig `json:"injectableCredentialsConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AuthenticationType") - // 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. "AuthenticationType") 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 *AuthenticationConfig) MarshalJSON() ([]byte, error) { - type NoMethod AuthenticationConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // AutoscalingConfig: Autoscaling Policy config associated with the // cluster. type AutoscalingConfig struct { @@ -2343,11 +2302,6 @@ func (s *InjectCredentialsRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// InjectableCredentialsConfig: Specific injectable credentials -// authentication parameters -type InjectableCredentialsConfig struct { -} - // InstanceGroupAutoscalingPolicyConfig: Configuration for the size // bounds of an instance group, including its proportional size to other // groups. @@ -4373,10 +4327,6 @@ type RuntimeConfig struct { // are used to configure workload execution. Properties map[string]string `json:"properties,omitempty"` - // SessionAuthenticationConfig: Optional. Authentication configuration - // for the session execution. - SessionAuthenticationConfig *AuthenticationConfig `json:"sessionAuthenticationConfig,omitempty"` - // Version: Optional. Version of the batch runtime. Version string `json:"version,omitempty"` @@ -6340,8 +6290,9 @@ type ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall struct { // set. // // - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsLocationsAutoscalingPoliciesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall { c := &ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -6449,7 +6400,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Do(opts ...google // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/autoscalingPolicies/[^/]+$", // "required": true, @@ -6686,8 +6637,9 @@ type ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall struct { // INVALID_ARGUMENT, and PERMISSION_DENIED errors. // // - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsLocationsAutoscalingPoliciesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall { c := &ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -6795,7 +6747,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Do(opts ...google // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/autoscalingPolicies/[^/]+$", // "required": true, @@ -6835,7 +6787,8 @@ type ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall struct { // operation may "fail open" without warning. // // - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. func (r *ProjectsLocationsAutoscalingPoliciesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall { c := &ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -6944,7 +6897,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Do(opts ... // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/autoscalingPolicies/[^/]+$", // "required": true, @@ -8258,8 +8211,9 @@ type ProjectsLocationsWorkflowTemplatesGetIamPolicyCall struct { // set. // // - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsLocationsWorkflowTemplatesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall { c := &ProjectsLocationsWorkflowTemplatesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -8367,7 +8321,7 @@ func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Do(opts ...googleap // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", // "required": true, @@ -8941,8 +8895,9 @@ type ProjectsLocationsWorkflowTemplatesSetIamPolicyCall struct { // INVALID_ARGUMENT, and PERMISSION_DENIED errors. // // - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsLocationsWorkflowTemplatesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall { c := &ProjectsLocationsWorkflowTemplatesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -9050,7 +9005,7 @@ func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Do(opts ...googleap // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", // "required": true, @@ -9090,7 +9045,8 @@ type ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall struct { // operation may "fail open" without warning. // // - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. func (r *ProjectsLocationsWorkflowTemplatesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall { c := &ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -9199,7 +9155,7 @@ func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Do(opts ...go // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", // "required": true, @@ -9831,8 +9787,9 @@ type ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall struct { // set. // // - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsRegionsAutoscalingPoliciesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall { c := &ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -9940,7 +9897,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Do(opts ...googleap // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", // "required": true, @@ -10177,8 +10134,9 @@ type ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall struct { // INVALID_ARGUMENT, and PERMISSION_DENIED errors. // // - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsRegionsAutoscalingPoliciesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall { c := &ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -10286,7 +10244,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Do(opts ...googleap // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", // "required": true, @@ -10326,7 +10284,8 @@ type ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall struct { // operation may "fail open" without warning. // // - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. func (r *ProjectsRegionsAutoscalingPoliciesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall { c := &ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -10435,7 +10394,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Do(opts ...go // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", // "required": true, @@ -11355,8 +11314,9 @@ type ProjectsRegionsClustersGetIamPolicyCall struct { // set. // // - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsRegionsClustersService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsRegionsClustersGetIamPolicyCall { c := &ProjectsRegionsClustersGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -11464,7 +11424,7 @@ func (c *ProjectsRegionsClustersGetIamPolicyCall) Do(opts ...googleapi.CallOptio // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", // "required": true, @@ -12296,8 +12256,9 @@ type ProjectsRegionsClustersSetIamPolicyCall struct { // INVALID_ARGUMENT, and PERMISSION_DENIED errors. // // - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsRegionsClustersService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsClustersSetIamPolicyCall { c := &ProjectsRegionsClustersSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -12405,7 +12366,7 @@ func (c *ProjectsRegionsClustersSetIamPolicyCall) Do(opts ...googleapi.CallOptio // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", // "required": true, @@ -12773,7 +12734,8 @@ type ProjectsRegionsClustersTestIamPermissionsCall struct { // operation may "fail open" without warning. // // - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. func (r *ProjectsRegionsClustersService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsClustersTestIamPermissionsCall { c := &ProjectsRegionsClustersTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -12882,7 +12844,7 @@ func (c *ProjectsRegionsClustersTestIamPermissionsCall) Do(opts ...googleapi.Cal // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", // "required": true, @@ -13410,8 +13372,9 @@ type ProjectsRegionsJobsGetIamPolicyCall struct { // set. // // - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsRegionsJobsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsRegionsJobsGetIamPolicyCall { c := &ProjectsRegionsJobsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -13519,7 +13482,7 @@ func (c *ProjectsRegionsJobsGetIamPolicyCall) Do(opts ...googleapi.CallOption) ( // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/regions/[^/]+/jobs/[^/]+$", // "required": true, @@ -14001,8 +13964,9 @@ type ProjectsRegionsJobsSetIamPolicyCall struct { // INVALID_ARGUMENT, and PERMISSION_DENIED errors. // // - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsRegionsJobsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsJobsSetIamPolicyCall { c := &ProjectsRegionsJobsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -14110,7 +14074,7 @@ func (c *ProjectsRegionsJobsSetIamPolicyCall) Do(opts ...googleapi.CallOption) ( // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/regions/[^/]+/jobs/[^/]+$", // "required": true, @@ -14456,7 +14420,8 @@ type ProjectsRegionsJobsTestIamPermissionsCall struct { // operation may "fail open" without warning. // // - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. func (r *ProjectsRegionsJobsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsJobsTestIamPermissionsCall { c := &ProjectsRegionsJobsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -14565,7 +14530,7 @@ func (c *ProjectsRegionsJobsTestIamPermissionsCall) Do(opts ...googleapi.CallOpt // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/regions/[^/]+/jobs/[^/]+$", // "required": true, @@ -15026,8 +14991,9 @@ type ProjectsRegionsOperationsGetIamPolicyCall struct { // set. // // - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsRegionsOperationsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsRegionsOperationsGetIamPolicyCall { c := &ProjectsRegionsOperationsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -15135,7 +15101,7 @@ func (c *ProjectsRegionsOperationsGetIamPolicyCall) Do(opts ...googleapi.CallOpt // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", // "required": true, @@ -15385,8 +15351,9 @@ type ProjectsRegionsOperationsSetIamPolicyCall struct { // INVALID_ARGUMENT, and PERMISSION_DENIED errors. // // - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsRegionsOperationsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsOperationsSetIamPolicyCall { c := &ProjectsRegionsOperationsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -15494,7 +15461,7 @@ func (c *ProjectsRegionsOperationsSetIamPolicyCall) Do(opts ...googleapi.CallOpt // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", // "required": true, @@ -15534,7 +15501,8 @@ type ProjectsRegionsOperationsTestIamPermissionsCall struct { // operation may "fail open" without warning. // // - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. func (r *ProjectsRegionsOperationsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsOperationsTestIamPermissionsCall { c := &ProjectsRegionsOperationsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -15643,7 +15611,7 @@ func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Do(opts ...googleapi.C // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", // "required": true, @@ -16153,8 +16121,9 @@ type ProjectsRegionsWorkflowTemplatesGetIamPolicyCall struct { // set. // // - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsRegionsWorkflowTemplatesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall { c := &ProjectsRegionsWorkflowTemplatesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -16262,7 +16231,7 @@ func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Do(opts ...googleapi. // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", // "required": true, @@ -16836,8 +16805,9 @@ type ProjectsRegionsWorkflowTemplatesSetIamPolicyCall struct { // INVALID_ARGUMENT, and PERMISSION_DENIED errors. // // - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsRegionsWorkflowTemplatesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall { c := &ProjectsRegionsWorkflowTemplatesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -16945,7 +16915,7 @@ func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Do(opts ...googleapi. // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", // "required": true, @@ -16985,7 +16955,8 @@ type ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall struct { // operation may "fail open" without warning. // // - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. func (r *ProjectsRegionsWorkflowTemplatesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall { c := &ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -17094,7 +17065,7 @@ func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Do(opts ...goog // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", // "required": true, diff --git a/datastore/v1/datastore-api.json b/datastore/v1/datastore-api.json index fff134e8808..2b2d9471963 100644 --- a/datastore/v1/datastore-api.json +++ b/datastore/v1/datastore-api.json @@ -626,7 +626,7 @@ } } }, - "revision": "20220428", + "revision": "20220524", "rootUrl": "https://datastore.googleapis.com/", "schemas": { "AllocateIdsRequest": { @@ -1776,11 +1776,11 @@ "type": "string" }, "kind": { - "description": "The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `\"\"`.", + "description": "The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `\"\"`. Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are encoded as `__bytes__` where `` is the base-64 encoding of the bytes.", "type": "string" }, "name": { - "description": "The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `\"\"`.", + "description": "The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `\"\"`. Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are encoded as `__bytes__` where `` is the base-64 encoding of the bytes.", "type": "string" } }, diff --git a/datastore/v1/datastore-gen.go b/datastore/v1/datastore-gen.go index 4a7c84517c7..76ec57d8752 100644 --- a/datastore/v1/datastore-gen.go +++ b/datastore/v1/datastore-gen.go @@ -2171,12 +2171,16 @@ type PathElement struct { // Kind: The kind of the entity. A kind matching regex `__.*__` is // reserved/read-only. A kind must not contain more than 1500 bytes when - // UTF-8 encoded. Cannot be "". + // UTF-8 encoded. Cannot be "". Must be valid UTF-8 bytes. Legacy + // values that are not valid UTF-8 are encoded as `__bytes__` where `` + // is the base-64 encoding of the bytes. Kind string `json:"kind,omitempty"` // Name: The name of the entity. A name matching regex `__.*__` is // reserved/read-only. A name must not be more than 1500 bytes when - // UTF-8 encoded. Cannot be "". + // UTF-8 encoded. Cannot be "". Must be valid UTF-8 bytes. Legacy + // values that are not valid UTF-8 are encoded as `__bytes__` where `` + // is the base-64 encoding of the bytes. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to diff --git a/datastore/v1beta3/datastore-api.json b/datastore/v1beta3/datastore-api.json index f58e7163f27..41250bd938b 100644 --- a/datastore/v1beta3/datastore-api.json +++ b/datastore/v1beta3/datastore-api.json @@ -308,7 +308,7 @@ } } }, - "revision": "20220428", + "revision": "20220524", "rootUrl": "https://datastore.googleapis.com/", "schemas": { "AllocateIdsRequest": { @@ -1251,11 +1251,11 @@ "type": "string" }, "kind": { - "description": "The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `\"\"`.", + "description": "The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `\"\"`. Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are encoded as `__bytes__` where `` is the base-64 encoding of the bytes.", "type": "string" }, "name": { - "description": "The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `\"\"`.", + "description": "The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `\"\"`. Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are encoded as `__bytes__` where `` is the base-64 encoding of the bytes.", "type": "string" } }, diff --git a/datastore/v1beta3/datastore-gen.go b/datastore/v1beta3/datastore-gen.go index 999d2105982..981ab356918 100644 --- a/datastore/v1beta3/datastore-gen.go +++ b/datastore/v1beta3/datastore-gen.go @@ -1788,12 +1788,16 @@ type PathElement struct { // Kind: The kind of the entity. A kind matching regex `__.*__` is // reserved/read-only. A kind must not contain more than 1500 bytes when - // UTF-8 encoded. Cannot be "". + // UTF-8 encoded. Cannot be "". Must be valid UTF-8 bytes. Legacy + // values that are not valid UTF-8 are encoded as `__bytes__` where `` + // is the base-64 encoding of the bytes. Kind string `json:"kind,omitempty"` // Name: The name of the entity. A name matching regex `__.*__` is // reserved/read-only. A name must not be more than 1500 bytes when - // UTF-8 encoded. Cannot be "". + // UTF-8 encoded. Cannot be "". Must be valid UTF-8 bytes. Legacy + // values that are not valid UTF-8 are encoded as `__bytes__` where `` + // is the base-64 encoding of the bytes. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to diff --git a/displayvideo/v1/displayvideo-api.json b/displayvideo/v1/displayvideo-api.json index 247682aa42b..80390dcdb9b 100644 --- a/displayvideo/v1/displayvideo-api.json +++ b/displayvideo/v1/displayvideo-api.json @@ -5573,6 +5573,201 @@ } } }, + "guaranteedOrders": { + "methods": { + "create": { + "description": "Creates a new guaranteed order. Returns the newly created guaranteed order if successful.", + "flatPath": "v1/guaranteedOrders", + "httpMethod": "POST", + "id": "displayvideo.guaranteedOrders.create", + "parameterOrder": [], + "parameters": { + "advertiserId": { + "description": "The ID of the advertiser that the request is being made within.", + "format": "int64", + "location": "query", + "type": "string" + }, + "partnerId": { + "description": "The ID of the partner that the request is being made within.", + "format": "int64", + "location": "query", + "type": "string" + } + }, + "path": "v1/guaranteedOrders", + "request": { + "$ref": "GuaranteedOrder" + }, + "response": { + "$ref": "GuaranteedOrder" + }, + "scopes": [ + "https://www.googleapis.com/auth/display-video" + ] + }, + "editGuaranteedOrderReadAccessors": { + "description": "Edits read advertisers of a guaranteed order.", + "flatPath": "v1/guaranteedOrders/{guaranteedOrdersId}:editGuaranteedOrderReadAccessors", + "httpMethod": "POST", + "id": "displayvideo.guaranteedOrders.editGuaranteedOrderReadAccessors", + "parameterOrder": [ + "guaranteedOrderId" + ], + "parameters": { + "guaranteedOrderId": { + "description": "Required. The ID of the guaranteed order to edit. The ID is of the format `{exchange}-{legacy_guaranteed_order_id}`", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/guaranteedOrders/{+guaranteedOrderId}:editGuaranteedOrderReadAccessors", + "request": { + "$ref": "EditGuaranteedOrderReadAccessorsRequest" + }, + "response": { + "$ref": "EditGuaranteedOrderReadAccessorsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/display-video" + ] + }, + "get": { + "description": "Gets a guaranteed order.", + "flatPath": "v1/guaranteedOrders/{guaranteedOrdersId}", + "httpMethod": "GET", + "id": "displayvideo.guaranteedOrders.get", + "parameterOrder": [ + "guaranteedOrderId" + ], + "parameters": { + "advertiserId": { + "description": "The ID of the advertiser that has access to the guaranteed order.", + "format": "int64", + "location": "query", + "type": "string" + }, + "guaranteedOrderId": { + "description": "Required. The ID of the guaranteed order to fetch. The ID is of the format `{exchange}-{legacy_guaranteed_order_id}`", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "partnerId": { + "description": "The ID of the partner that has access to the guaranteed order.", + "format": "int64", + "location": "query", + "type": "string" + } + }, + "path": "v1/guaranteedOrders/{+guaranteedOrderId}", + "response": { + "$ref": "GuaranteedOrder" + }, + "scopes": [ + "https://www.googleapis.com/auth/display-video" + ] + }, + "list": { + "description": "Lists guaranteed orders that are accessible to the current user. The order is defined by the order_by parameter. If a filter by entity_status is not specified, guaranteed orders with entity status `ENTITY_STATUS_ARCHIVED` will not be included in the results.", + "flatPath": "v1/guaranteedOrders", + "httpMethod": "GET", + "id": "displayvideo.guaranteedOrders.list", + "parameterOrder": [], + "parameters": { + "advertiserId": { + "description": "The ID of the advertiser that has access to the guaranteed order.", + "format": "int64", + "location": "query", + "type": "string" + }, + "filter": { + "description": "Allows filtering by guaranteed order properties. * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * The operator must be `EQUALS (=)`. * Supported fields: - `guaranteed_order_id` - `exchange` - `display_name` - `status.entityStatus` Examples: * All active guaranteed orders: `status.entityStatus=\"ENTITY_STATUS_ACTIVE\"` * Guaranteed orders belonging to Google Ad Manager or Rubicon exchanges: `exchange=\"EXCHANGE_GOOGLE_AD_MANAGER\" OR exchange=\"EXCHANGE_RUBICON\"` The length of this field should be no more than 500 characters.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Field by which to sort the list. Acceptable values are: * `displayName` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. For example, `displayName desc`.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Requested page size. Must be between `1` and `100`. If unspecified or greater than `100` will default to `100`.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListGuaranteedOrders` method. If not specified, the first page of results will be returned.", + "location": "query", + "type": "string" + }, + "partnerId": { + "description": "The ID of the partner that has access to the guaranteed order.", + "format": "int64", + "location": "query", + "type": "string" + } + }, + "path": "v1/guaranteedOrders", + "response": { + "$ref": "ListGuaranteedOrdersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/display-video" + ] + }, + "patch": { + "description": "Updates an existing guaranteed order. Returns the updated guaranteed order if successful.", + "flatPath": "v1/guaranteedOrders/{guaranteedOrdersId}", + "httpMethod": "PATCH", + "id": "displayvideo.guaranteedOrders.patch", + "parameterOrder": [ + "guaranteedOrderId" + ], + "parameters": { + "advertiserId": { + "description": "The ID of the advertiser that the request is being made within.", + "format": "int64", + "location": "query", + "type": "string" + }, + "guaranteedOrderId": { + "description": "Output only. The unique identifier of the guaranteed order. The guaranteed order IDs have the format `{exchange}-{legacy_guaranteed_order_id}`.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "partnerId": { + "description": "The ID of the partner that the request is being made within.", + "format": "int64", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. The mask to control which fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/guaranteedOrders/{+guaranteedOrderId}", + "request": { + "$ref": "GuaranteedOrder" + }, + "response": { + "$ref": "GuaranteedOrder" + }, + "scopes": [ + "https://www.googleapis.com/auth/display-video" + ] + } + } + }, "inventorySourceGroups": { "methods": { "create": { @@ -5963,6 +6158,66 @@ }, "inventorySources": { "methods": { + "create": { + "description": "Creates a new inventory source. Returns the newly created inventory source if successful.", + "flatPath": "v1/inventorySources", + "httpMethod": "POST", + "id": "displayvideo.inventorySources.create", + "parameterOrder": [], + "parameters": { + "advertiserId": { + "description": "The ID of the advertiser that the request is being made within.", + "format": "int64", + "location": "query", + "type": "string" + }, + "partnerId": { + "description": "The ID of the partner that the request is being made within.", + "format": "int64", + "location": "query", + "type": "string" + } + }, + "path": "v1/inventorySources", + "request": { + "$ref": "InventorySource" + }, + "response": { + "$ref": "InventorySource" + }, + "scopes": [ + "https://www.googleapis.com/auth/display-video" + ] + }, + "editInventorySourceReadWriteAccessors": { + "description": "Edits read/write accessors of an inventory source. Returns the updated read_write_accessors for the inventory source.", + "flatPath": "v1/inventorySources/{inventorySourcesId}:editInventorySourceReadWriteAccessors", + "httpMethod": "POST", + "id": "displayvideo.inventorySources.editInventorySourceReadWriteAccessors", + "parameterOrder": [ + "inventorySourceId" + ], + "parameters": { + "inventorySourceId": { + "description": "Required. The ID of inventory source to update.", + "format": "int64", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/inventorySources/{+inventorySourceId}:editInventorySourceReadWriteAccessors", + "request": { + "$ref": "EditInventorySourceReadWriteAccessorsRequest" + }, + "response": { + "$ref": "InventorySourceAccessors" + }, + "scopes": [ + "https://www.googleapis.com/auth/display-video" + ] + }, "get": { "description": "Gets an inventory source.", "flatPath": "v1/inventorySources/{inventorySourcesId}", @@ -6043,6 +6298,53 @@ "scopes": [ "https://www.googleapis.com/auth/display-video" ] + }, + "patch": { + "description": "Updates an existing inventory source. Returns the updated inventory source if successful.", + "flatPath": "v1/inventorySources/{inventorySourcesId}", + "httpMethod": "PATCH", + "id": "displayvideo.inventorySources.patch", + "parameterOrder": [ + "inventorySourceId" + ], + "parameters": { + "advertiserId": { + "description": "The ID of the advertiser that the request is being made within.", + "format": "int64", + "location": "query", + "type": "string" + }, + "inventorySourceId": { + "description": "Output only. The unique ID of the inventory source. Assigned by the system.", + "format": "int64", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "partnerId": { + "description": "The ID of the partner that the request is being made within.", + "format": "int64", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. The mask to control which fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/inventorySources/{+inventorySourceId}", + "request": { + "$ref": "InventorySource" + }, + "response": { + "$ref": "InventorySource" + }, + "scopes": [ + "https://www.googleapis.com/auth/display-video" + ] } } }, @@ -11089,7 +11391,7 @@ "type": "string" }, "modelReadiness": { - "description": "Output only. The custom bidding model readiness state for each advertiser who have access. This field may only include the state of the queried advertiser if the algorithm [`owner`](/display-video/api/reference/rest/v1/customBiddingAlgorithms#CustomBiddingAlgorithm.FIELDS.oneof_owner) is a partner and is being retrieved using an advertiser [`accessor`](/display-video/api/reference/rest/v1/customBiddingAlgorithms/list#body.QUERY_PARAMETERS.oneof_accessor).", + "description": "Output only. The state of custom bidding model readiness for each advertiser who has access. This field may only include the state of the queried advertiser if the algorithm [`owner`](/display-video/api/reference/rest/v1/customBiddingAlgorithms#CustomBiddingAlgorithm.FIELDS.oneof_owner) is a partner and is being retrieved using an advertiser [`accessor`](/display-video/api/reference/rest/v1/customBiddingAlgorithms/list#body.QUERY_PARAMETERS.oneof_accessor).", "items": { "$ref": "CustomBiddingModelReadinessState" }, @@ -11122,7 +11424,7 @@ "id": "CustomBiddingModelReadinessState", "properties": { "advertiserId": { - "description": "The unique ID of the advertiser with access to the custom bidding algorithm.", + "description": "The unique ID of the relevant advertiser.", "format": "int64", "type": "string" }, @@ -11140,7 +11442,7 @@ "The model is trained and ready for serving.", "There is not enough data to train the serving model.", "The model is training and not ready for serving.", - "The model will not be trained until a valid custom bidding script linked. This state will only be applied to algorithms whose `custom_bidding_algorithm_type` is `SCRIPT_BASED`." + "A valid custom bidding script has not been provided with which to train the model. This state will only be applied to algorithms whose `custom_bidding_algorithm_type` is `SCRIPT_BASED`." ], "type": "string" } @@ -12025,28 +12327,121 @@ }, "type": "object" }, - "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", - "id": "Empty", - "properties": {}, - "type": "object" - }, - "EnvironmentAssignedTargetingOptionDetails": { - "description": "Assigned environment targeting option details. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_ENVIRONMENT`.", - "id": "EnvironmentAssignedTargetingOptionDetails", + "EditGuaranteedOrderReadAccessorsRequest": { + "description": "Request message for GuaranteedOrderService.EditGuaranteedOrderReadAccessors.", + "id": "EditGuaranteedOrderReadAccessorsRequest", "properties": { - "environment": { - "description": "The serving environment. Output only in v1.", - "enum": [ - "ENVIRONMENT_UNSPECIFIED", - "ENVIRONMENT_WEB_OPTIMIZED", - "ENVIRONMENT_WEB_NOT_OPTIMIZED", - "ENVIRONMENT_APP" - ], - "enumDescriptions": [ - "Default value when environment is not specified in this version. This enum is a placeholder for default value and does not represent a real environment option.", - "Target inventory displayed in browsers. This includes inventory that was designed for the device it was viewed on, such as mobile websites viewed on a mobile device. ENVIRONMENT_WEB_NOT_OPTIMIZED, if targeted, should be deleted prior to the deletion of this targeting option.", - "Target inventory displayed in browsers. This includes inventory that was not designed for the device but viewed on it, such as websites optimized for desktop but viewed on a mobile device. ENVIRONMENT_WEB_OPTIMIZED should be targeted prior to the addition of this targeting option.", + "addedAdvertisers": { + "description": "The advertisers to add as read accessors to the guaranteed order.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + }, + "partnerId": { + "description": "Required. The partner context in which the change is being made.", + "format": "int64", + "type": "string" + }, + "readAccessInherited": { + "description": "Whether to give all advertisers of the read/write accessor partner read access to the guaranteed order. Only applicable if read_write_partner_id is set in the guaranteed order.", + "type": "boolean" + }, + "removedAdvertisers": { + "description": "The advertisers to remove as read accessors to the guaranteed order.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "EditGuaranteedOrderReadAccessorsResponse": { + "id": "EditGuaranteedOrderReadAccessorsResponse", + "properties": { + "readAccessInherited": { + "description": "Whether all advertisers of read_write_partner_id have read access to the guaranteed order.", + "type": "boolean" + }, + "readAdvertiserIds": { + "description": "The IDs of advertisers with read access to the guaranteed order.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "EditInventorySourceReadWriteAccessorsRequest": { + "description": "Request message for InventorySourceService.EditInventorySourceReadWriteAccessors.", + "id": "EditInventorySourceReadWriteAccessorsRequest", + "properties": { + "advertisersUpdate": { + "$ref": "EditInventorySourceReadWriteAccessorsRequestAdvertisersUpdate", + "description": "The advertisers to add or remove from the list of advertisers that have read/write access to the inventory source. This change will remove an existing partner read/write accessor." + }, + "assignPartner": { + "description": "Set the partner context as read/write accessor of the inventory source. This will remove all other current read/write advertiser accessors.", + "type": "boolean" + }, + "partnerId": { + "description": "Required. The partner context by which the accessors change is being made.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "EditInventorySourceReadWriteAccessorsRequestAdvertisersUpdate": { + "description": "Update to the list of advertisers with read/write access to the inventory source.", + "id": "EditInventorySourceReadWriteAccessorsRequestAdvertisersUpdate", + "properties": { + "addedAdvertisers": { + "description": "The advertisers to add.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + }, + "removedAdvertisers": { + "description": "The advertisers to remove.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", + "id": "Empty", + "properties": {}, + "type": "object" + }, + "EnvironmentAssignedTargetingOptionDetails": { + "description": "Assigned environment targeting option details. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_ENVIRONMENT`.", + "id": "EnvironmentAssignedTargetingOptionDetails", + "properties": { + "environment": { + "description": "The serving environment. Output only in v1.", + "enum": [ + "ENVIRONMENT_UNSPECIFIED", + "ENVIRONMENT_WEB_OPTIMIZED", + "ENVIRONMENT_WEB_NOT_OPTIMIZED", + "ENVIRONMENT_APP" + ], + "enumDescriptions": [ + "Default value when environment is not specified in this version. This enum is a placeholder for default value and does not represent a real environment option.", + "Target inventory displayed in browsers. This includes inventory that was designed for the device it was viewed on, such as mobile websites viewed on a mobile device. ENVIRONMENT_WEB_NOT_OPTIMIZED, if targeted, should be deleted prior to the deletion of this targeting option.", + "Target inventory displayed in browsers. This includes inventory that was not designed for the device but viewed on it, such as websites optimized for desktop but viewed on a mobile device. ENVIRONMENT_WEB_OPTIMIZED should be targeted prior to the addition of this targeting option.", "Target inventory displayed in apps." ], "type": "string" @@ -13321,6 +13716,265 @@ }, "type": "object" }, + "GuaranteedOrder": { + "description": "A guaranteed order. Guaranteed orders are parent entity of guaranteed inventory sources. When creating a guaranteed inventory source, a guaranteed order ID must be assigned to the inventory source.", + "id": "GuaranteedOrder", + "properties": { + "defaultAdvertiserId": { + "description": "Output only. The ID of default advertiser of the guaranteed order. The default advertiser is either the read_write_advertiser_id or, if that is not set, the first advertiser listed in read_advertiser_ids. Otherwise, there is no default advertiser.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "defaultCampaignId": { + "description": "The ID of the default campaign that is assigned to the guaranteed order. The default campaign must belong to the default advertiser.", + "format": "int64", + "type": "string" + }, + "displayName": { + "description": "Required. The display name of the guaranteed order. Must be UTF-8 encoded with a maximum size of 240 bytes.", + "type": "string" + }, + "exchange": { + "description": "Required. Immutable. The exchange where the guaranteed order originated.", + "enum": [ + "EXCHANGE_UNSPECIFIED", + "EXCHANGE_GOOGLE_AD_MANAGER", + "EXCHANGE_APPNEXUS", + "EXCHANGE_BRIGHTROLL", + "EXCHANGE_ADFORM", + "EXCHANGE_ADMETA", + "EXCHANGE_ADMIXER", + "EXCHANGE_ADSMOGO", + "EXCHANGE_ADSWIZZ", + "EXCHANGE_BIDSWITCH", + "EXCHANGE_BRIGHTROLL_DISPLAY", + "EXCHANGE_CADREON", + "EXCHANGE_DAILYMOTION", + "EXCHANGE_FIVE", + "EXCHANGE_FLUCT", + "EXCHANGE_FREEWHEEL", + "EXCHANGE_GENIEE", + "EXCHANGE_GUMGUM", + "EXCHANGE_IMOBILE", + "EXCHANGE_IBILLBOARD", + "EXCHANGE_IMPROVE_DIGITAL", + "EXCHANGE_INDEX", + "EXCHANGE_KARGO", + "EXCHANGE_MICROAD", + "EXCHANGE_MOPUB", + "EXCHANGE_NEND", + "EXCHANGE_ONE_BY_AOL_DISPLAY", + "EXCHANGE_ONE_BY_AOL_MOBILE", + "EXCHANGE_ONE_BY_AOL_VIDEO", + "EXCHANGE_OOYALA", + "EXCHANGE_OPENX", + "EXCHANGE_PERMODO", + "EXCHANGE_PLATFORMONE", + "EXCHANGE_PLATFORMID", + "EXCHANGE_PUBMATIC", + "EXCHANGE_PULSEPOINT", + "EXCHANGE_REVENUEMAX", + "EXCHANGE_RUBICON", + "EXCHANGE_SMARTCLIP", + "EXCHANGE_SMARTRTB", + "EXCHANGE_SMARTSTREAMTV", + "EXCHANGE_SOVRN", + "EXCHANGE_SPOTXCHANGE", + "EXCHANGE_STROER", + "EXCHANGE_TEADSTV", + "EXCHANGE_TELARIA", + "EXCHANGE_TVN", + "EXCHANGE_UNITED", + "EXCHANGE_YIELDLAB", + "EXCHANGE_YIELDMO", + "EXCHANGE_UNRULYX", + "EXCHANGE_OPEN8", + "EXCHANGE_TRITON", + "EXCHANGE_TRIPLELIFT", + "EXCHANGE_TABOOLA", + "EXCHANGE_INMOBI", + "EXCHANGE_SMAATO", + "EXCHANGE_AJA", + "EXCHANGE_SUPERSHIP", + "EXCHANGE_NEXSTAR_DIGITAL", + "EXCHANGE_WAZE", + "EXCHANGE_SOUNDCAST", + "EXCHANGE_SHARETHROUGH", + "EXCHANGE_RED_FOR_PUBLISHERS", + "EXCHANGE_MEDIANET", + "EXCHANGE_TAPJOY" + ], + "enumDescriptions": [ + "Exchange is not specified or is unknown in this version.", + "Google Ad Manager.", + "AppNexus.", + "BrightRoll Exchange for Video from Yahoo!.", + "Adform.", + "Admeta.", + "Admixer.", + "AdsMogo.", + "AdsWizz.", + "BidSwitch.", + "BrightRoll Exchange for Display from Yahoo!.", + "Cadreon.", + "Dailymotion.", + "Five.", + "Fluct.", + "FreeWheel SSP.", + "Geniee.", + "GumGum.", + "i-mobile.", + "iBILLBOARD.", + "Improve Digital.", + "Index Exchange.", + "Kargo.", + "MicroAd.", + "MoPub.", + "Nend.", + "ONE by AOL: Display Market Place.", + "ONE by AOL: Mobile.", + "ONE by AOL: Video.", + "Ooyala.", + "OpenX.", + "Permodo.", + "Platform One.", + "PlatformId.", + "PubMatic.", + "PulsePoint.", + "RevenueMax.", + "Rubicon.", + "SmartClip.", + "SmartRTB+.", + "SmartstreamTv.", + "Sovrn.", + "SpotXchange.", + "Ströer SSP.", + "TeadsTv.", + "Telaria.", + "TVN.", + "United.", + "Yieldlab.", + "Yieldmo.", + "UnrulyX.", + "Open8.", + "Triton.", + "TripleLift.", + "Taboola.", + "InMobi.", + "Smaato.", + "Aja.", + "Supership.", + "Nexstar Digital.", + "Waze.", + "SoundCast.", + "Sharethrough.", + "Red For Publishers.", + "Media.net.", + "Tapjoy." + ], + "type": "string" + }, + "guaranteedOrderId": { + "description": "Output only. The unique identifier of the guaranteed order. The guaranteed order IDs have the format `{exchange}-{legacy_guaranteed_order_id}`.", + "readOnly": true, + "type": "string" + }, + "legacyGuaranteedOrderId": { + "description": "Output only. The legacy ID of the guaranteed order. Assigned by the original exchange. The legacy ID is unique within one exchange, but is not guaranteed to be unique across all guaranteed orders. This ID is used in SDF and UI.", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. The resource name of the guaranteed order.", + "readOnly": true, + "type": "string" + }, + "publisherName": { + "description": "Required. The publisher name of the guaranteed order. Must be UTF-8 encoded with a maximum size of 240 bytes.", + "type": "string" + }, + "readAccessInherited": { + "description": "Whether all advertisers of read_write_partner_id have read access to the guaranteed order. Only applicable if read_write_partner_id is set. If True, overrides read_advertiser_ids.", + "type": "boolean" + }, + "readAdvertiserIds": { + "description": "The IDs of advertisers with read access to the guaranteed order. This field must not include the advertiser assigned to read_write_advertiser_id if it is set. All advertisers in this field must belong to read_write_partner_id or the same partner as read_write_advertiser_id.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + }, + "readWriteAdvertiserId": { + "description": "The advertiser with read/write access to the guaranteed order. This is also the default advertiser of the guaranteed order.", + "format": "int64", + "type": "string" + }, + "readWritePartnerId": { + "description": "The partner with read/write access to the guaranteed order.", + "format": "int64", + "type": "string" + }, + "status": { + "$ref": "GuaranteedOrderStatus", + "description": "The status settings of the guaranteed order." + }, + "updateTime": { + "description": "Output only. The timestamp when the guaranteed order was last updated. Assigned by the system.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GuaranteedOrderStatus": { + "description": "The status settings of the guaranteed order.", + "id": "GuaranteedOrderStatus", + "properties": { + "configStatus": { + "description": "Output only. The configuration status of the guaranteed order. Acceptable values are `PENDING` and `COMPLETED`. A guaranteed order must be configured (fill in the required fields, choose creatives, and select a default campaign) before it can serve. Currently the configuration action can only be performed via UI.", + "enum": [ + "GUARANTEED_ORDER_CONFIG_STATUS_UNSPECIFIED", + "PENDING", + "COMPLETED" + ], + "enumDescriptions": [ + "The approval status is not specified or is unknown in this version.", + "The beginning state of a guaranteed order. The guaranteed order in this state needs to be configured before it can serve.", + "The state after the buyer configures a guaranteed order." + ], + "readOnly": true, + "type": "string" + }, + "entityPauseReason": { + "description": "The user-provided reason for pausing this guaranteed order. Must be UTF-8 encoded with a maximum length of 100 bytes. Only applicable when entity_status is set to `ENTITY_STATUS_PAUSED`.", + "type": "string" + }, + "entityStatus": { + "description": "Whether or not the guaranteed order is servable. Acceptable values are `ENTITY_STATUS_ACTIVE`, `ENTITY_STATUS_ARCHIVED`, and `ENTITY_STATUS_PAUSED`. Default value is `ENTITY_STATUS_ACTIVE`.", + "enum": [ + "ENTITY_STATUS_UNSPECIFIED", + "ENTITY_STATUS_ACTIVE", + "ENTITY_STATUS_ARCHIVED", + "ENTITY_STATUS_DRAFT", + "ENTITY_STATUS_PAUSED", + "ENTITY_STATUS_SCHEDULED_FOR_DELETION" + ], + "enumDescriptions": [ + "Default value when status is not specified or is unknown in this version.", + "The entity is enabled to bid and spend budget.", + "The entity is archived. Bidding and budget spending are disabled. An entity can be deleted after archived. Deleted entities cannot be retrieved.", + "The entity is under draft. Bidding and budget spending are disabled.", + "Bidding and budget spending are paused for the entity.", + "The entity is scheduled for deletion." + ], + "type": "string" + } + }, + "type": "object" + }, "HouseholdIncomeAssignedTargetingOptionDetails": { "description": "Details for assigned household income targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_HOUSEHOLD_INCOME`.", "id": "HouseholdIncomeAssignedTargetingOptionDetails", @@ -14057,12 +14711,45 @@ ], "type": "string" }, + "guaranteedOrderId": { + "description": "Immutable. The ID of the guaranteed order that this inventory source belongs to. Only applicable when commitment is `INVENTORY_SOURCE_COMMITMENT_GUARANTEED`.", + "type": "string" + }, "inventorySourceId": { "description": "Output only. The unique ID of the inventory source. Assigned by the system.", "format": "int64", "readOnly": true, "type": "string" }, + "inventorySourceProductType": { + "description": "Output only. The product type of the inventory source, denoting the way through which it sells inventory.", + "enum": [ + "INVENTORY_SOURCE_PRODUCT_TYPE_UNSPECIFIED", + "PREFERRED_DEAL", + "PRIVATE_AUCTION", + "PROGRAMMATIC_GUARANTEED", + "TAG_GUARANTEED", + "YOUTUBE_RESERVE", + "INSTANT_RESERVE", + "GUARANTEED_PACKAGE", + "PROGRAMMATIC_TV", + "AUCTION_PACKAGE" + ], + "enumDescriptions": [ + "The product type is not specified or is unknown in this version. Modifying inventory sources of this product type are not supported via API.", + "The inventory source sells inventory through Preferred Deal.", + "The inventory source sells inventory through Private Auction.", + "The inventory source sells inventory through Programmatic Guaranteed.", + "The inventory source sells inventory through Tag Guaranteed.", + "The inventory source sells inventory through YouTube Reserve.", + "The inventory source sells inventory through Instant Reserve. Modifying inventory sources of this product type are not supported via API.", + "The inventory source sells inventory through Guaranteed Package. Modifying inventory sources of this product type are not supported via API.", + "The inventory source sells inventory through Programmtic TV. Modifying inventory sources of this product type are not supported via API.", + "The inventory source sells inventory through Auction Package. Modifying inventory sources of this product type are not supported via API." + ], + "readOnly": true, + "type": "string" + }, "inventorySourceType": { "description": "Denotes the type of the inventory source.", "enum": [ @@ -14090,10 +14777,37 @@ "$ref": "RateDetails", "description": "Required. The rate details of the inventory source." }, + "readAdvertiserIds": { + "description": "Output only. The IDs of advertisers with read-only access to the inventory source.", + "items": { + "format": "int64", + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "readPartnerIds": { + "description": "Output only. The IDs of partners with read-only access to the inventory source. All advertisers of partners in this field inherit read-only access to the inventory source.", + "items": { + "format": "int64", + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "readWriteAccessors": { + "$ref": "InventorySourceAccessors", + "description": "The partner or advertisers that have read/write access to the inventory source. Output only when commitment is `INVENTORY_SOURCE_COMMITMENT_GUARANTEED`, in which case the read/write accessors are inherited from the parent guaranteed order. Required when commitment is `INVENTORY_SOURCE_COMMITMENT_NON_GUARANTEED`. If commitment is `INVENTORY_SOURCE_COMMITMENT_NON_GUARANTEED` and a partner is set in this field, all advertisers under this partner will automatically have read-only access to the inventory source. These advertisers will not be included in read_advertiser_ids." + }, "status": { "$ref": "InventorySourceStatus", "description": "The status settings of the inventory source." }, + "subSitePropertyId": { + "description": "Immutable. The unique ID of the sub-site property assigned to this inventory source.", + "format": "int64", + "type": "string" + }, "timeRange": { "$ref": "TimeRange", "description": "The time range when this inventory source starts and stops serving." @@ -14107,6 +14821,48 @@ }, "type": "object" }, + "InventorySourceAccessors": { + "description": "The partner or advertisers with access to the inventory source.", + "id": "InventorySourceAccessors", + "properties": { + "advertisers": { + "$ref": "InventorySourceAccessorsAdvertiserAccessors", + "description": "The advertisers with access to the inventory source. All advertisers must belong to the same partner." + }, + "partner": { + "$ref": "InventorySourceAccessorsPartnerAccessor", + "description": "The partner with access to the inventory source." + } + }, + "type": "object" + }, + "InventorySourceAccessorsAdvertiserAccessors": { + "description": "The advertisers with access to the inventory source.", + "id": "InventorySourceAccessorsAdvertiserAccessors", + "properties": { + "advertiserIds": { + "description": "The IDs of the advertisers.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "InventorySourceAccessorsPartnerAccessor": { + "description": "The partner with access to the inventory source.", + "id": "InventorySourceAccessorsPartnerAccessor", + "properties": { + "partnerId": { + "description": "The ID of the partner.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "InventorySourceAssignedTargetingOptionDetails": { "description": "Targeting details for inventory source. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_INVENTORY_SOURCE`.", "id": "InventorySourceAssignedTargetingOptionDetails", @@ -14957,6 +15713,23 @@ }, "type": "object" }, + "ListGuaranteedOrdersResponse": { + "id": "ListGuaranteedOrdersResponse", + "properties": { + "guaranteedOrders": { + "description": "The list of guaranteed orders. This list will be absent if empty.", + "items": { + "$ref": "GuaranteedOrder" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve the next page of results. Pass this value in the page_token field in the subsequent call to `ListGuaranteedOrders` method to retrieve the next page of results.", + "type": "string" + } + }, + "type": "object" + }, "ListInsertionOrderAssignedTargetingOptionsResponse": { "description": "Response message for ListInsertionOrderAssignedTargetingOptions.", "id": "ListInsertionOrderAssignedTargetingOptionsResponse", @@ -15955,7 +16728,7 @@ "id": "ParentalStatusAssignedTargetingOptionDetails", "properties": { "parentalStatus": { - "description": "Output only. The parental status of the audience.", + "description": "The parental status of the audience. Output only in v1. Required in v2.", "enum": [ "PARENTAL_STATUS_UNSPECIFIED", "PARENTAL_STATUS_PARENT", @@ -15968,7 +16741,6 @@ "The audience is not a parent.", "The parental status of the audience is unknown." ], - "readOnly": true, "type": "string" }, "targetingOptionId": { @@ -16931,7 +17703,7 @@ "type": "string" }, "sensitiveCategory": { - "description": "An enum for the DV360 Sensitive category content classifier. Output only in v1.", + "description": "Output only. An enum for the DV360 Sensitive category content classifier.", "enum": [ "SENSITIVE_CATEGORY_UNSPECIFIED", "SENSITIVE_CATEGORY_ADULT", @@ -16972,6 +17744,7 @@ "Issues that evoke strong, opposing views and spark debate. These include issues that are controversial in most countries and markets (such as abortion), as well as those that are controversial in specific countries and markets (such as immigration reform in the United States).", "Content which may be considered shocking or disturbing, such as violent news stories, stunts, or toilet humor." ], + "readOnly": true, "type": "string" } }, diff --git a/displayvideo/v1/displayvideo-gen.go b/displayvideo/v1/displayvideo-gen.go index ef674942970..46021805b58 100644 --- a/displayvideo/v1/displayvideo-gen.go +++ b/displayvideo/v1/displayvideo-gen.go @@ -143,6 +143,7 @@ func New(client *http.Client) (*Service, error) { s.FirstAndThirdPartyAudiences = NewFirstAndThirdPartyAudiencesService(s) s.FloodlightGroups = NewFloodlightGroupsService(s) s.GoogleAudiences = NewGoogleAudiencesService(s) + s.GuaranteedOrders = NewGuaranteedOrdersService(s) s.InventorySourceGroups = NewInventorySourceGroupsService(s) s.InventorySources = NewInventorySourcesService(s) s.Media = NewMediaService(s) @@ -172,6 +173,8 @@ type Service struct { GoogleAudiences *GoogleAudiencesService + GuaranteedOrders *GuaranteedOrdersService + InventorySourceGroups *InventorySourceGroupsService InventorySources *InventorySourcesService @@ -521,6 +524,15 @@ type GoogleAudiencesService struct { s *Service } +func NewGuaranteedOrdersService(s *Service) *GuaranteedOrdersService { + rs := &GuaranteedOrdersService{s: s} + return rs +} + +type GuaranteedOrdersService struct { + s *Service +} + func NewInventorySourceGroupsService(s *Service) *InventorySourceGroupsService { rs := &InventorySourceGroupsService{s: s} rs.AssignedInventorySources = NewInventorySourceGroupsAssignedInventorySourcesService(s) @@ -5835,9 +5847,9 @@ type CustomBiddingAlgorithm struct { // for deletion. EntityStatus string `json:"entityStatus,omitempty"` - // ModelReadiness: Output only. The custom bidding model readiness state - // for each advertiser who have access. This field may only include the - // state of the queried advertiser if the algorithm `owner` + // ModelReadiness: Output only. The state of custom bidding model + // readiness for each advertiser who has access. This field may only + // include the state of the queried advertiser if the algorithm `owner` // (/display-video/api/reference/rest/v1/customBiddingAlgorithms#CustomBi // ddingAlgorithm.FIELDS.oneof_owner) is a partner and is being // retrieved using an advertiser `accessor` @@ -5892,8 +5904,7 @@ func (s *CustomBiddingAlgorithm) MarshalJSON() ([]byte, error) { // CustomBiddingModelReadinessState: The custom bidding algorithm model // readiness state for a single shared advertiser. type CustomBiddingModelReadinessState struct { - // AdvertiserId: The unique ID of the advertiser with access to the - // custom bidding algorithm. + // AdvertiserId: The unique ID of the relevant advertiser. AdvertiserId int64 `json:"advertiserId,omitempty,string"` // ReadinessState: The readiness state of custom bidding model. @@ -5907,10 +5918,10 @@ type CustomBiddingModelReadinessState struct { // train the serving model. // "READINESS_STATE_TRAINING" - The model is training and not ready // for serving. - // "READINESS_STATE_NO_VALID_SCRIPT" - The model will not be trained - // until a valid custom bidding script linked. This state will only be - // applied to algorithms whose `custom_bidding_algorithm_type` is - // `SCRIPT_BASED`. + // "READINESS_STATE_NO_VALID_SCRIPT" - A valid custom bidding script + // has not been provided with which to train the model. This state will + // only be applied to algorithms whose `custom_bidding_algorithm_type` + // is `SCRIPT_BASED`. ReadinessState string `json:"readinessState,omitempty"` // ForceSendFields is a list of field names (e.g. "AdvertiserId") to @@ -7168,6 +7179,162 @@ func (s *EditCustomerMatchMembersResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// EditGuaranteedOrderReadAccessorsRequest: Request message for +// GuaranteedOrderService.EditGuaranteedOrderReadAccessors. +type EditGuaranteedOrderReadAccessorsRequest struct { + // AddedAdvertisers: The advertisers to add as read accessors to the + // guaranteed order. + AddedAdvertisers googleapi.Int64s `json:"addedAdvertisers,omitempty"` + + // PartnerId: Required. The partner context in which the change is being + // made. + PartnerId int64 `json:"partnerId,omitempty,string"` + + // ReadAccessInherited: Whether to give all advertisers of the + // read/write accessor partner read access to the guaranteed order. Only + // applicable if read_write_partner_id is set in the guaranteed order. + ReadAccessInherited bool `json:"readAccessInherited,omitempty"` + + // RemovedAdvertisers: The advertisers to remove as read accessors to + // the guaranteed order. + RemovedAdvertisers googleapi.Int64s `json:"removedAdvertisers,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AddedAdvertisers") 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. "AddedAdvertisers") 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 *EditGuaranteedOrderReadAccessorsRequest) MarshalJSON() ([]byte, error) { + type NoMethod EditGuaranteedOrderReadAccessorsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type EditGuaranteedOrderReadAccessorsResponse struct { + // ReadAccessInherited: Whether all advertisers of read_write_partner_id + // have read access to the guaranteed order. + ReadAccessInherited bool `json:"readAccessInherited,omitempty"` + + // ReadAdvertiserIds: The IDs of advertisers with read access to the + // guaranteed order. + ReadAdvertiserIds googleapi.Int64s `json:"readAdvertiserIds,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ReadAccessInherited") + // 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. "ReadAccessInherited") 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 *EditGuaranteedOrderReadAccessorsResponse) MarshalJSON() ([]byte, error) { + type NoMethod EditGuaranteedOrderReadAccessorsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EditInventorySourceReadWriteAccessorsRequest: Request message for +// InventorySourceService.EditInventorySourceReadWriteAccessors. +type EditInventorySourceReadWriteAccessorsRequest struct { + // AdvertisersUpdate: The advertisers to add or remove from the list of + // advertisers that have read/write access to the inventory source. This + // change will remove an existing partner read/write accessor. + AdvertisersUpdate *EditInventorySourceReadWriteAccessorsRequestAdvertisersUpdate `json:"advertisersUpdate,omitempty"` + + // AssignPartner: Set the partner context as read/write accessor of the + // inventory source. This will remove all other current read/write + // advertiser accessors. + AssignPartner bool `json:"assignPartner,omitempty"` + + // PartnerId: Required. The partner context by which the accessors + // change is being made. + PartnerId int64 `json:"partnerId,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "AdvertisersUpdate") + // 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. "AdvertisersUpdate") 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 *EditInventorySourceReadWriteAccessorsRequest) MarshalJSON() ([]byte, error) { + type NoMethod EditInventorySourceReadWriteAccessorsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EditInventorySourceReadWriteAccessorsRequestAdvertisersUpdate: Update +// to the list of advertisers with read/write access to the inventory +// source. +type EditInventorySourceReadWriteAccessorsRequestAdvertisersUpdate struct { + // AddedAdvertisers: The advertisers to add. + AddedAdvertisers googleapi.Int64s `json:"addedAdvertisers,omitempty"` + + // RemovedAdvertisers: The advertisers to remove. + RemovedAdvertisers googleapi.Int64s `json:"removedAdvertisers,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AddedAdvertisers") 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. "AddedAdvertisers") 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 *EditInventorySourceReadWriteAccessorsRequestAdvertisersUpdate) MarshalJSON() ([]byte, error) { + type NoMethod EditInventorySourceReadWriteAccessorsRequestAdvertisersUpdate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For @@ -8651,6 +8818,243 @@ func (s *GoogleBytestreamMedia) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GuaranteedOrder: A guaranteed order. Guaranteed orders are parent +// entity of guaranteed inventory sources. When creating a guaranteed +// inventory source, a guaranteed order ID must be assigned to the +// inventory source. +type GuaranteedOrder struct { + // DefaultAdvertiserId: Output only. The ID of default advertiser of the + // guaranteed order. The default advertiser is either the + // read_write_advertiser_id or, if that is not set, the first advertiser + // listed in read_advertiser_ids. Otherwise, there is no default + // advertiser. + DefaultAdvertiserId int64 `json:"defaultAdvertiserId,omitempty,string"` + + // DefaultCampaignId: The ID of the default campaign that is assigned to + // the guaranteed order. The default campaign must belong to the default + // advertiser. + DefaultCampaignId int64 `json:"defaultCampaignId,omitempty,string"` + + // DisplayName: Required. The display name of the guaranteed order. Must + // be UTF-8 encoded with a maximum size of 240 bytes. + DisplayName string `json:"displayName,omitempty"` + + // Exchange: Required. Immutable. The exchange where the guaranteed + // order originated. + // + // Possible values: + // "EXCHANGE_UNSPECIFIED" - Exchange is not specified or is unknown in + // this version. + // "EXCHANGE_GOOGLE_AD_MANAGER" - Google Ad Manager. + // "EXCHANGE_APPNEXUS" - AppNexus. + // "EXCHANGE_BRIGHTROLL" - BrightRoll Exchange for Video from Yahoo!. + // "EXCHANGE_ADFORM" - Adform. + // "EXCHANGE_ADMETA" - Admeta. + // "EXCHANGE_ADMIXER" - Admixer. + // "EXCHANGE_ADSMOGO" - AdsMogo. + // "EXCHANGE_ADSWIZZ" - AdsWizz. + // "EXCHANGE_BIDSWITCH" - BidSwitch. + // "EXCHANGE_BRIGHTROLL_DISPLAY" - BrightRoll Exchange for Display + // from Yahoo!. + // "EXCHANGE_CADREON" - Cadreon. + // "EXCHANGE_DAILYMOTION" - Dailymotion. + // "EXCHANGE_FIVE" - Five. + // "EXCHANGE_FLUCT" - Fluct. + // "EXCHANGE_FREEWHEEL" - FreeWheel SSP. + // "EXCHANGE_GENIEE" - Geniee. + // "EXCHANGE_GUMGUM" - GumGum. + // "EXCHANGE_IMOBILE" - i-mobile. + // "EXCHANGE_IBILLBOARD" - iBILLBOARD. + // "EXCHANGE_IMPROVE_DIGITAL" - Improve Digital. + // "EXCHANGE_INDEX" - Index Exchange. + // "EXCHANGE_KARGO" - Kargo. + // "EXCHANGE_MICROAD" - MicroAd. + // "EXCHANGE_MOPUB" - MoPub. + // "EXCHANGE_NEND" - Nend. + // "EXCHANGE_ONE_BY_AOL_DISPLAY" - ONE by AOL: Display Market Place. + // "EXCHANGE_ONE_BY_AOL_MOBILE" - ONE by AOL: Mobile. + // "EXCHANGE_ONE_BY_AOL_VIDEO" - ONE by AOL: Video. + // "EXCHANGE_OOYALA" - Ooyala. + // "EXCHANGE_OPENX" - OpenX. + // "EXCHANGE_PERMODO" - Permodo. + // "EXCHANGE_PLATFORMONE" - Platform One. + // "EXCHANGE_PLATFORMID" - PlatformId. + // "EXCHANGE_PUBMATIC" - PubMatic. + // "EXCHANGE_PULSEPOINT" - PulsePoint. + // "EXCHANGE_REVENUEMAX" - RevenueMax. + // "EXCHANGE_RUBICON" - Rubicon. + // "EXCHANGE_SMARTCLIP" - SmartClip. + // "EXCHANGE_SMARTRTB" - SmartRTB+. + // "EXCHANGE_SMARTSTREAMTV" - SmartstreamTv. + // "EXCHANGE_SOVRN" - Sovrn. + // "EXCHANGE_SPOTXCHANGE" - SpotXchange. + // "EXCHANGE_STROER" - Ströer SSP. + // "EXCHANGE_TEADSTV" - TeadsTv. + // "EXCHANGE_TELARIA" - Telaria. + // "EXCHANGE_TVN" - TVN. + // "EXCHANGE_UNITED" - United. + // "EXCHANGE_YIELDLAB" - Yieldlab. + // "EXCHANGE_YIELDMO" - Yieldmo. + // "EXCHANGE_UNRULYX" - UnrulyX. + // "EXCHANGE_OPEN8" - Open8. + // "EXCHANGE_TRITON" - Triton. + // "EXCHANGE_TRIPLELIFT" - TripleLift. + // "EXCHANGE_TABOOLA" - Taboola. + // "EXCHANGE_INMOBI" - InMobi. + // "EXCHANGE_SMAATO" - Smaato. + // "EXCHANGE_AJA" - Aja. + // "EXCHANGE_SUPERSHIP" - Supership. + // "EXCHANGE_NEXSTAR_DIGITAL" - Nexstar Digital. + // "EXCHANGE_WAZE" - Waze. + // "EXCHANGE_SOUNDCAST" - SoundCast. + // "EXCHANGE_SHARETHROUGH" - Sharethrough. + // "EXCHANGE_RED_FOR_PUBLISHERS" - Red For Publishers. + // "EXCHANGE_MEDIANET" - Media.net. + // "EXCHANGE_TAPJOY" - Tapjoy. + Exchange string `json:"exchange,omitempty"` + + // GuaranteedOrderId: Output only. The unique identifier of the + // guaranteed order. The guaranteed order IDs have the format + // `{exchange}-{legacy_guaranteed_order_id}`. + GuaranteedOrderId string `json:"guaranteedOrderId,omitempty"` + + // LegacyGuaranteedOrderId: Output only. The legacy ID of the guaranteed + // order. Assigned by the original exchange. The legacy ID is unique + // within one exchange, but is not guaranteed to be unique across all + // guaranteed orders. This ID is used in SDF and UI. + LegacyGuaranteedOrderId string `json:"legacyGuaranteedOrderId,omitempty"` + + // Name: Output only. The resource name of the guaranteed order. + Name string `json:"name,omitempty"` + + // PublisherName: Required. The publisher name of the guaranteed order. + // Must be UTF-8 encoded with a maximum size of 240 bytes. + PublisherName string `json:"publisherName,omitempty"` + + // ReadAccessInherited: Whether all advertisers of read_write_partner_id + // have read access to the guaranteed order. Only applicable if + // read_write_partner_id is set. If True, overrides read_advertiser_ids. + ReadAccessInherited bool `json:"readAccessInherited,omitempty"` + + // ReadAdvertiserIds: The IDs of advertisers with read access to the + // guaranteed order. This field must not include the advertiser assigned + // to read_write_advertiser_id if it is set. All advertisers in this + // field must belong to read_write_partner_id or the same partner as + // read_write_advertiser_id. + ReadAdvertiserIds googleapi.Int64s `json:"readAdvertiserIds,omitempty"` + + // ReadWriteAdvertiserId: The advertiser with read/write access to the + // guaranteed order. This is also the default advertiser of the + // guaranteed order. + ReadWriteAdvertiserId int64 `json:"readWriteAdvertiserId,omitempty,string"` + + // ReadWritePartnerId: The partner with read/write access to the + // guaranteed order. + ReadWritePartnerId int64 `json:"readWritePartnerId,omitempty,string"` + + // Status: The status settings of the guaranteed order. + Status *GuaranteedOrderStatus `json:"status,omitempty"` + + // UpdateTime: Output only. The timestamp when the guaranteed order was + // last updated. Assigned by the system. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DefaultAdvertiserId") + // 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. "DefaultAdvertiserId") 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 *GuaranteedOrder) MarshalJSON() ([]byte, error) { + type NoMethod GuaranteedOrder + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GuaranteedOrderStatus: The status settings of the guaranteed order. +type GuaranteedOrderStatus struct { + // ConfigStatus: Output only. The configuration status of the guaranteed + // order. Acceptable values are `PENDING` and `COMPLETED`. A guaranteed + // order must be configured (fill in the required fields, choose + // creatives, and select a default campaign) before it can serve. + // Currently the configuration action can only be performed via UI. + // + // Possible values: + // "GUARANTEED_ORDER_CONFIG_STATUS_UNSPECIFIED" - The approval status + // is not specified or is unknown in this version. + // "PENDING" - The beginning state of a guaranteed order. The + // guaranteed order in this state needs to be configured before it can + // serve. + // "COMPLETED" - The state after the buyer configures a guaranteed + // order. + ConfigStatus string `json:"configStatus,omitempty"` + + // EntityPauseReason: The user-provided reason for pausing this + // guaranteed order. Must be UTF-8 encoded with a maximum length of 100 + // bytes. Only applicable when entity_status is set to + // `ENTITY_STATUS_PAUSED`. + EntityPauseReason string `json:"entityPauseReason,omitempty"` + + // EntityStatus: Whether or not the guaranteed order is servable. + // Acceptable values are `ENTITY_STATUS_ACTIVE`, + // `ENTITY_STATUS_ARCHIVED`, and `ENTITY_STATUS_PAUSED`. Default value + // is `ENTITY_STATUS_ACTIVE`. + // + // Possible values: + // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not + // specified or is unknown in this version. + // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend + // budget. + // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and + // budget spending are disabled. An entity can be deleted after + // archived. Deleted entities cannot be retrieved. + // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and + // budget spending are disabled. + // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for + // the entity. + // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled + // for deletion. + EntityStatus string `json:"entityStatus,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConfigStatus") 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. "ConfigStatus") 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 *GuaranteedOrderStatus) MarshalJSON() ([]byte, error) { + type NoMethod GuaranteedOrderStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // HouseholdIncomeAssignedTargetingOptionDetails: Details for assigned // household income targeting option. This will be populated in the // details field of an AssignedTargetingOption when targeting_type is @@ -9377,10 +9781,46 @@ type InventorySource struct { // "EXCHANGE_TAPJOY" - Tapjoy. Exchange string `json:"exchange,omitempty"` + // GuaranteedOrderId: Immutable. The ID of the guaranteed order that + // this inventory source belongs to. Only applicable when commitment is + // `INVENTORY_SOURCE_COMMITMENT_GUARANTEED`. + GuaranteedOrderId string `json:"guaranteedOrderId,omitempty"` + // InventorySourceId: Output only. The unique ID of the inventory // source. Assigned by the system. InventorySourceId int64 `json:"inventorySourceId,omitempty,string"` + // InventorySourceProductType: Output only. The product type of the + // inventory source, denoting the way through which it sells inventory. + // + // Possible values: + // "INVENTORY_SOURCE_PRODUCT_TYPE_UNSPECIFIED" - The product type is + // not specified or is unknown in this version. Modifying inventory + // sources of this product type are not supported via API. + // "PREFERRED_DEAL" - The inventory source sells inventory through + // Preferred Deal. + // "PRIVATE_AUCTION" - The inventory source sells inventory through + // Private Auction. + // "PROGRAMMATIC_GUARANTEED" - The inventory source sells inventory + // through Programmatic Guaranteed. + // "TAG_GUARANTEED" - The inventory source sells inventory through Tag + // Guaranteed. + // "YOUTUBE_RESERVE" - The inventory source sells inventory through + // YouTube Reserve. + // "INSTANT_RESERVE" - The inventory source sells inventory through + // Instant Reserve. Modifying inventory sources of this product type are + // not supported via API. + // "GUARANTEED_PACKAGE" - The inventory source sells inventory through + // Guaranteed Package. Modifying inventory sources of this product type + // are not supported via API. + // "PROGRAMMATIC_TV" - The inventory source sells inventory through + // Programmtic TV. Modifying inventory sources of this product type are + // not supported via API. + // "AUCTION_PACKAGE" - The inventory source sells inventory through + // Auction Package. Modifying inventory sources of this product type are + // not supported via API. + InventorySourceProductType string `json:"inventorySourceProductType,omitempty"` + // InventorySourceType: Denotes the type of the inventory source. // // Possible values: @@ -9399,9 +9839,34 @@ type InventorySource struct { // RateDetails: Required. The rate details of the inventory source. RateDetails *RateDetails `json:"rateDetails,omitempty"` + // ReadAdvertiserIds: Output only. The IDs of advertisers with read-only + // access to the inventory source. + ReadAdvertiserIds googleapi.Int64s `json:"readAdvertiserIds,omitempty"` + + // ReadPartnerIds: Output only. The IDs of partners with read-only + // access to the inventory source. All advertisers of partners in this + // field inherit read-only access to the inventory source. + ReadPartnerIds googleapi.Int64s `json:"readPartnerIds,omitempty"` + + // ReadWriteAccessors: The partner or advertisers that have read/write + // access to the inventory source. Output only when commitment is + // `INVENTORY_SOURCE_COMMITMENT_GUARANTEED`, in which case the + // read/write accessors are inherited from the parent guaranteed order. + // Required when commitment is + // `INVENTORY_SOURCE_COMMITMENT_NON_GUARANTEED`. If commitment is + // `INVENTORY_SOURCE_COMMITMENT_NON_GUARANTEED` and a partner is set in + // this field, all advertisers under this partner will automatically + // have read-only access to the inventory source. These advertisers will + // not be included in read_advertiser_ids. + ReadWriteAccessors *InventorySourceAccessors `json:"readWriteAccessors,omitempty"` + // Status: The status settings of the inventory source. Status *InventorySourceStatus `json:"status,omitempty"` + // SubSitePropertyId: Immutable. The unique ID of the sub-site property + // assigned to this inventory source. + SubSitePropertyId int64 `json:"subSitePropertyId,omitempty,string"` + // TimeRange: The time range when this inventory source starts and stops // serving. TimeRange *TimeRange `json:"timeRange,omitempty"` @@ -9437,6 +9902,101 @@ func (s *InventorySource) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// InventorySourceAccessors: The partner or advertisers with access to +// the inventory source. +type InventorySourceAccessors struct { + // Advertisers: The advertisers with access to the inventory source. All + // advertisers must belong to the same partner. + Advertisers *InventorySourceAccessorsAdvertiserAccessors `json:"advertisers,omitempty"` + + // Partner: The partner with access to the inventory source. + Partner *InventorySourceAccessorsPartnerAccessor `json:"partner,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Advertisers") 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. "Advertisers") 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 *InventorySourceAccessors) MarshalJSON() ([]byte, error) { + type NoMethod InventorySourceAccessors + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InventorySourceAccessorsAdvertiserAccessors: The advertisers with +// access to the inventory source. +type InventorySourceAccessorsAdvertiserAccessors struct { + // AdvertiserIds: The IDs of the advertisers. + AdvertiserIds googleapi.Int64s `json:"advertiserIds,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AdvertiserIds") 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. "AdvertiserIds") 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 *InventorySourceAccessorsAdvertiserAccessors) MarshalJSON() ([]byte, error) { + type NoMethod InventorySourceAccessorsAdvertiserAccessors + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InventorySourceAccessorsPartnerAccessor: The partner with access to +// the inventory source. +type InventorySourceAccessorsPartnerAccessor struct { + // PartnerId: The ID of the partner. + PartnerId int64 `json:"partnerId,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "PartnerId") 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. "PartnerId") 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 *InventorySourceAccessorsPartnerAccessor) MarshalJSON() ([]byte, error) { + type NoMethod InventorySourceAccessorsPartnerAccessor + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // InventorySourceAssignedTargetingOptionDetails: Targeting details for // inventory source. This will be populated in the details field of an // AssignedTargetingOption when targeting_type is @@ -10864,6 +11424,44 @@ func (s *ListGoogleAudiencesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type ListGuaranteedOrdersResponse struct { + // GuaranteedOrders: The list of guaranteed orders. This list will be + // absent if empty. + GuaranteedOrders []*GuaranteedOrder `json:"guaranteedOrders,omitempty"` + + // NextPageToken: A token to retrieve the next page of results. Pass + // this value in the page_token field in the subsequent call to + // `ListGuaranteedOrders` method to retrieve the next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "GuaranteedOrders") 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. "GuaranteedOrders") 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 *ListGuaranteedOrdersResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListGuaranteedOrdersResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListInsertionOrderAssignedTargetingOptionsResponse: Response message // for ListInsertionOrderAssignedTargetingOptions. type ListInsertionOrderAssignedTargetingOptionsResponse struct { @@ -12661,7 +13259,8 @@ func (s *ParentEntityFilter) MarshalJSON() ([]byte, error) { // details field of an AssignedTargetingOption when targeting_type is // `TARGETING_TYPE_PARENTAL_STATUS`. type ParentalStatusAssignedTargetingOptionDetails struct { - // ParentalStatus: Output only. The parental status of the audience. + // ParentalStatus: The parental status of the audience. Output only in + // v1. Required in v2. // // Possible values: // "PARENTAL_STATUS_UNSPECIFIED" - Default value when parental status @@ -14198,8 +14797,8 @@ type SensitiveCategoryAssignedTargetingOptionDetails struct { // be EXCLUDED. ExcludedTargetingOptionId string `json:"excludedTargetingOptionId,omitempty"` - // SensitiveCategory: An enum for the DV360 Sensitive category content - // classifier. Output only in v1. + // SensitiveCategory: Output only. An enum for the DV360 Sensitive + // category content classifier. // // Possible values: // "SENSITIVE_CATEGORY_UNSPECIFIED" - This enum is only a placeholder @@ -35577,6 +36176,909 @@ func (c *GoogleAudiencesListCall) Pages(ctx context.Context, f func(*ListGoogleA } } +// method id "displayvideo.guaranteedOrders.create": + +type GuaranteedOrdersCreateCall struct { + s *Service + guaranteedorder *GuaranteedOrder + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new guaranteed order. Returns the newly created +// guaranteed order if successful. +func (r *GuaranteedOrdersService) Create(guaranteedorder *GuaranteedOrder) *GuaranteedOrdersCreateCall { + c := &GuaranteedOrdersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.guaranteedorder = guaranteedorder + return c +} + +// AdvertiserId sets the optional parameter "advertiserId": The ID of +// the advertiser that the request is being made within. +func (c *GuaranteedOrdersCreateCall) AdvertiserId(advertiserId int64) *GuaranteedOrdersCreateCall { + c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) + return c +} + +// PartnerId sets the optional parameter "partnerId": The ID of the +// partner that the request is being made within. +func (c *GuaranteedOrdersCreateCall) PartnerId(partnerId int64) *GuaranteedOrdersCreateCall { + c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *GuaranteedOrdersCreateCall) Fields(s ...googleapi.Field) *GuaranteedOrdersCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *GuaranteedOrdersCreateCall) Context(ctx context.Context) *GuaranteedOrdersCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *GuaranteedOrdersCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *GuaranteedOrdersCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.guaranteedorder) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/guaranteedOrders") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "displayvideo.guaranteedOrders.create" call. +// Exactly one of *GuaranteedOrder or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *GuaranteedOrder.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *GuaranteedOrdersCreateCall) Do(opts ...googleapi.CallOption) (*GuaranteedOrder, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GuaranteedOrder{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new guaranteed order. Returns the newly created guaranteed order if successful.", + // "flatPath": "v1/guaranteedOrders", + // "httpMethod": "POST", + // "id": "displayvideo.guaranteedOrders.create", + // "parameterOrder": [], + // "parameters": { + // "advertiserId": { + // "description": "The ID of the advertiser that the request is being made within.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "partnerId": { + // "description": "The ID of the partner that the request is being made within.", + // "format": "int64", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/guaranteedOrders", + // "request": { + // "$ref": "GuaranteedOrder" + // }, + // "response": { + // "$ref": "GuaranteedOrder" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/display-video" + // ] + // } + +} + +// method id "displayvideo.guaranteedOrders.editGuaranteedOrderReadAccessors": + +type GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall struct { + s *Service + guaranteedOrderId string + editguaranteedorderreadaccessorsrequest *EditGuaranteedOrderReadAccessorsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// EditGuaranteedOrderReadAccessors: Edits read advertisers of a +// guaranteed order. +// +// - guaranteedOrderId: The ID of the guaranteed order to edit. The ID +// is of the format `{exchange}-{legacy_guaranteed_order_id}`. +func (r *GuaranteedOrdersService) EditGuaranteedOrderReadAccessors(guaranteedOrderId string, editguaranteedorderreadaccessorsrequest *EditGuaranteedOrderReadAccessorsRequest) *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall { + c := &GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.guaranteedOrderId = guaranteedOrderId + c.editguaranteedorderreadaccessorsrequest = editguaranteedorderreadaccessorsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall) Fields(s ...googleapi.Field) *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall) Context(ctx context.Context) *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.editguaranteedorderreadaccessorsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/guaranteedOrders/{+guaranteedOrderId}:editGuaranteedOrderReadAccessors") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "guaranteedOrderId": c.guaranteedOrderId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "displayvideo.guaranteedOrders.editGuaranteedOrderReadAccessors" call. +// Exactly one of *EditGuaranteedOrderReadAccessorsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *EditGuaranteedOrderReadAccessorsResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall) Do(opts ...googleapi.CallOption) (*EditGuaranteedOrderReadAccessorsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &EditGuaranteedOrderReadAccessorsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Edits read advertisers of a guaranteed order.", + // "flatPath": "v1/guaranteedOrders/{guaranteedOrdersId}:editGuaranteedOrderReadAccessors", + // "httpMethod": "POST", + // "id": "displayvideo.guaranteedOrders.editGuaranteedOrderReadAccessors", + // "parameterOrder": [ + // "guaranteedOrderId" + // ], + // "parameters": { + // "guaranteedOrderId": { + // "description": "Required. The ID of the guaranteed order to edit. The ID is of the format `{exchange}-{legacy_guaranteed_order_id}`", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/guaranteedOrders/{+guaranteedOrderId}:editGuaranteedOrderReadAccessors", + // "request": { + // "$ref": "EditGuaranteedOrderReadAccessorsRequest" + // }, + // "response": { + // "$ref": "EditGuaranteedOrderReadAccessorsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/display-video" + // ] + // } + +} + +// method id "displayvideo.guaranteedOrders.get": + +type GuaranteedOrdersGetCall struct { + s *Service + guaranteedOrderId string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a guaranteed order. +// +// - guaranteedOrderId: The ID of the guaranteed order to fetch. The ID +// is of the format `{exchange}-{legacy_guaranteed_order_id}`. +func (r *GuaranteedOrdersService) Get(guaranteedOrderId string) *GuaranteedOrdersGetCall { + c := &GuaranteedOrdersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.guaranteedOrderId = guaranteedOrderId + return c +} + +// AdvertiserId sets the optional parameter "advertiserId": The ID of +// the advertiser that has access to the guaranteed order. +func (c *GuaranteedOrdersGetCall) AdvertiserId(advertiserId int64) *GuaranteedOrdersGetCall { + c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) + return c +} + +// PartnerId sets the optional parameter "partnerId": The ID of the +// partner that has access to the guaranteed order. +func (c *GuaranteedOrdersGetCall) PartnerId(partnerId int64) *GuaranteedOrdersGetCall { + c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *GuaranteedOrdersGetCall) Fields(s ...googleapi.Field) *GuaranteedOrdersGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *GuaranteedOrdersGetCall) IfNoneMatch(entityTag string) *GuaranteedOrdersGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *GuaranteedOrdersGetCall) Context(ctx context.Context) *GuaranteedOrdersGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *GuaranteedOrdersGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *GuaranteedOrdersGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/guaranteedOrders/{+guaranteedOrderId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "guaranteedOrderId": c.guaranteedOrderId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "displayvideo.guaranteedOrders.get" call. +// Exactly one of *GuaranteedOrder or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *GuaranteedOrder.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *GuaranteedOrdersGetCall) Do(opts ...googleapi.CallOption) (*GuaranteedOrder, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GuaranteedOrder{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a guaranteed order.", + // "flatPath": "v1/guaranteedOrders/{guaranteedOrdersId}", + // "httpMethod": "GET", + // "id": "displayvideo.guaranteedOrders.get", + // "parameterOrder": [ + // "guaranteedOrderId" + // ], + // "parameters": { + // "advertiserId": { + // "description": "The ID of the advertiser that has access to the guaranteed order.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "guaranteedOrderId": { + // "description": "Required. The ID of the guaranteed order to fetch. The ID is of the format `{exchange}-{legacy_guaranteed_order_id}`", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "partnerId": { + // "description": "The ID of the partner that has access to the guaranteed order.", + // "format": "int64", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/guaranteedOrders/{+guaranteedOrderId}", + // "response": { + // "$ref": "GuaranteedOrder" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/display-video" + // ] + // } + +} + +// method id "displayvideo.guaranteedOrders.list": + +type GuaranteedOrdersListCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists guaranteed orders that are accessible to the current +// user. The order is defined by the order_by parameter. If a filter by +// entity_status is not specified, guaranteed orders with entity status +// `ENTITY_STATUS_ARCHIVED` will not be included in the results. +func (r *GuaranteedOrdersService) List() *GuaranteedOrdersListCall { + c := &GuaranteedOrdersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + return c +} + +// AdvertiserId sets the optional parameter "advertiserId": The ID of +// the advertiser that has access to the guaranteed order. +func (c *GuaranteedOrdersListCall) AdvertiserId(advertiserId int64) *GuaranteedOrdersListCall { + c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) + return c +} + +// Filter sets the optional parameter "filter": Allows filtering by +// guaranteed order properties. * Filter expressions are made up of one +// or more restrictions. * Restrictions can be combined by `AND` or `OR` +// logical operators. A sequence of restrictions implicitly uses `AND`. +// * A restriction has the form of `{field} {operator} {value}`. * The +// operator must be `EQUALS (=)`. * Supported fields: - +// `guaranteed_order_id` - `exchange` - `display_name` - +// `status.entityStatus` Examples: * All active guaranteed orders: +// `status.entityStatus="ENTITY_STATUS_ACTIVE" * Guaranteed orders +// belonging to Google Ad Manager or Rubicon exchanges: +// `exchange="EXCHANGE_GOOGLE_AD_MANAGER" OR +// exchange="EXCHANGE_RUBICON" The length of this field should be no +// more than 500 characters. +func (c *GuaranteedOrdersListCall) Filter(filter string) *GuaranteedOrdersListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Field by which to sort +// the list. Acceptable values are: * `displayName` (default) The +// default sorting order is ascending. To specify descending order for a +// field, a suffix "desc" should be added to the field name. For +// example, `displayName desc`. +func (c *GuaranteedOrdersListCall) OrderBy(orderBy string) *GuaranteedOrdersListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Must be between `1` and `100`. If unspecified or greater than `100` +// will default to `100`. +func (c *GuaranteedOrdersListCall) PageSize(pageSize int64) *GuaranteedOrdersListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results the server should return. Typically, +// this is the value of next_page_token returned from the previous call +// to `ListGuaranteedOrders` method. If not specified, the first page of +// results will be returned. +func (c *GuaranteedOrdersListCall) PageToken(pageToken string) *GuaranteedOrdersListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// PartnerId sets the optional parameter "partnerId": The ID of the +// partner that has access to the guaranteed order. +func (c *GuaranteedOrdersListCall) PartnerId(partnerId int64) *GuaranteedOrdersListCall { + c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *GuaranteedOrdersListCall) Fields(s ...googleapi.Field) *GuaranteedOrdersListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *GuaranteedOrdersListCall) IfNoneMatch(entityTag string) *GuaranteedOrdersListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *GuaranteedOrdersListCall) Context(ctx context.Context) *GuaranteedOrdersListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *GuaranteedOrdersListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *GuaranteedOrdersListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/guaranteedOrders") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "displayvideo.guaranteedOrders.list" call. +// Exactly one of *ListGuaranteedOrdersResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListGuaranteedOrdersResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *GuaranteedOrdersListCall) Do(opts ...googleapi.CallOption) (*ListGuaranteedOrdersResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ListGuaranteedOrdersResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists guaranteed orders that are accessible to the current user. The order is defined by the order_by parameter. If a filter by entity_status is not specified, guaranteed orders with entity status `ENTITY_STATUS_ARCHIVED` will not be included in the results.", + // "flatPath": "v1/guaranteedOrders", + // "httpMethod": "GET", + // "id": "displayvideo.guaranteedOrders.list", + // "parameterOrder": [], + // "parameters": { + // "advertiserId": { + // "description": "The ID of the advertiser that has access to the guaranteed order.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "filter": { + // "description": "Allows filtering by guaranteed order properties. * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * The operator must be `EQUALS (=)`. * Supported fields: - `guaranteed_order_id` - `exchange` - `display_name` - `status.entityStatus` Examples: * All active guaranteed orders: `status.entityStatus=\"ENTITY_STATUS_ACTIVE\"` * Guaranteed orders belonging to Google Ad Manager or Rubicon exchanges: `exchange=\"EXCHANGE_GOOGLE_AD_MANAGER\" OR exchange=\"EXCHANGE_RUBICON\"` The length of this field should be no more than 500 characters.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Field by which to sort the list. Acceptable values are: * `displayName` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. For example, `displayName desc`.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Requested page size. Must be between `1` and `100`. If unspecified or greater than `100` will default to `100`.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListGuaranteedOrders` method. If not specified, the first page of results will be returned.", + // "location": "query", + // "type": "string" + // }, + // "partnerId": { + // "description": "The ID of the partner that has access to the guaranteed order.", + // "format": "int64", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/guaranteedOrders", + // "response": { + // "$ref": "ListGuaranteedOrdersResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/display-video" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *GuaranteedOrdersListCall) Pages(ctx context.Context, f func(*ListGuaranteedOrdersResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "displayvideo.guaranteedOrders.patch": + +type GuaranteedOrdersPatchCall struct { + s *Service + guaranteedOrderId string + guaranteedorder *GuaranteedOrder + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an existing guaranteed order. Returns the updated +// guaranteed order if successful. +// +// - guaranteedOrderId: Output only. The unique identifier of the +// guaranteed order. The guaranteed order IDs have the format +// `{exchange}-{legacy_guaranteed_order_id}`. +func (r *GuaranteedOrdersService) Patch(guaranteedOrderId string, guaranteedorder *GuaranteedOrder) *GuaranteedOrdersPatchCall { + c := &GuaranteedOrdersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.guaranteedOrderId = guaranteedOrderId + c.guaranteedorder = guaranteedorder + return c +} + +// AdvertiserId sets the optional parameter "advertiserId": The ID of +// the advertiser that the request is being made within. +func (c *GuaranteedOrdersPatchCall) AdvertiserId(advertiserId int64) *GuaranteedOrdersPatchCall { + c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) + return c +} + +// PartnerId sets the optional parameter "partnerId": The ID of the +// partner that the request is being made within. +func (c *GuaranteedOrdersPatchCall) PartnerId(partnerId int64) *GuaranteedOrdersPatchCall { + c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// mask to control which fields to update. +func (c *GuaranteedOrdersPatchCall) UpdateMask(updateMask string) *GuaranteedOrdersPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *GuaranteedOrdersPatchCall) Fields(s ...googleapi.Field) *GuaranteedOrdersPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *GuaranteedOrdersPatchCall) Context(ctx context.Context) *GuaranteedOrdersPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *GuaranteedOrdersPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *GuaranteedOrdersPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.guaranteedorder) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/guaranteedOrders/{+guaranteedOrderId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "guaranteedOrderId": c.guaranteedOrderId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "displayvideo.guaranteedOrders.patch" call. +// Exactly one of *GuaranteedOrder or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *GuaranteedOrder.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *GuaranteedOrdersPatchCall) Do(opts ...googleapi.CallOption) (*GuaranteedOrder, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GuaranteedOrder{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates an existing guaranteed order. Returns the updated guaranteed order if successful.", + // "flatPath": "v1/guaranteedOrders/{guaranteedOrdersId}", + // "httpMethod": "PATCH", + // "id": "displayvideo.guaranteedOrders.patch", + // "parameterOrder": [ + // "guaranteedOrderId" + // ], + // "parameters": { + // "advertiserId": { + // "description": "The ID of the advertiser that the request is being made within.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "guaranteedOrderId": { + // "description": "Output only. The unique identifier of the guaranteed order. The guaranteed order IDs have the format `{exchange}-{legacy_guaranteed_order_id}`.", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "partnerId": { + // "description": "The ID of the partner that the request is being made within.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The mask to control which fields to update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/guaranteedOrders/{+guaranteedOrderId}", + // "request": { + // "$ref": "GuaranteedOrder" + // }, + // "response": { + // "$ref": "GuaranteedOrder" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/display-video" + // ] + // } + +} + // method id "displayvideo.inventorySourceGroups.create": type InventorySourceGroupsCreateCall struct { @@ -37266,6 +38768,304 @@ func (c *InventorySourceGroupsAssignedInventorySourcesListCall) Pages(ctx contex } } +// method id "displayvideo.inventorySources.create": + +type InventorySourcesCreateCall struct { + s *Service + inventorysource *InventorySource + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new inventory source. Returns the newly created +// inventory source if successful. +func (r *InventorySourcesService) Create(inventorysource *InventorySource) *InventorySourcesCreateCall { + c := &InventorySourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.inventorysource = inventorysource + return c +} + +// AdvertiserId sets the optional parameter "advertiserId": The ID of +// the advertiser that the request is being made within. +func (c *InventorySourcesCreateCall) AdvertiserId(advertiserId int64) *InventorySourcesCreateCall { + c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) + return c +} + +// PartnerId sets the optional parameter "partnerId": The ID of the +// partner that the request is being made within. +func (c *InventorySourcesCreateCall) PartnerId(partnerId int64) *InventorySourcesCreateCall { + c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *InventorySourcesCreateCall) Fields(s ...googleapi.Field) *InventorySourcesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *InventorySourcesCreateCall) Context(ctx context.Context) *InventorySourcesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *InventorySourcesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *InventorySourcesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.inventorysource) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/inventorySources") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "displayvideo.inventorySources.create" call. +// Exactly one of *InventorySource or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *InventorySource.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *InventorySourcesCreateCall) Do(opts ...googleapi.CallOption) (*InventorySource, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &InventorySource{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new inventory source. Returns the newly created inventory source if successful.", + // "flatPath": "v1/inventorySources", + // "httpMethod": "POST", + // "id": "displayvideo.inventorySources.create", + // "parameterOrder": [], + // "parameters": { + // "advertiserId": { + // "description": "The ID of the advertiser that the request is being made within.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "partnerId": { + // "description": "The ID of the partner that the request is being made within.", + // "format": "int64", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/inventorySources", + // "request": { + // "$ref": "InventorySource" + // }, + // "response": { + // "$ref": "InventorySource" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/display-video" + // ] + // } + +} + +// method id "displayvideo.inventorySources.editInventorySourceReadWriteAccessors": + +type InventorySourcesEditInventorySourceReadWriteAccessorsCall struct { + s *Service + inventorySourceId int64 + editinventorysourcereadwriteaccessorsrequest *EditInventorySourceReadWriteAccessorsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// EditInventorySourceReadWriteAccessors: Edits read/write accessors of +// an inventory source. Returns the updated read_write_accessors for the +// inventory source. +// +// - inventorySourceId: The ID of inventory source to update. +func (r *InventorySourcesService) EditInventorySourceReadWriteAccessors(inventorySourceId int64, editinventorysourcereadwriteaccessorsrequest *EditInventorySourceReadWriteAccessorsRequest) *InventorySourcesEditInventorySourceReadWriteAccessorsCall { + c := &InventorySourcesEditInventorySourceReadWriteAccessorsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.inventorySourceId = inventorySourceId + c.editinventorysourcereadwriteaccessorsrequest = editinventorysourcereadwriteaccessorsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *InventorySourcesEditInventorySourceReadWriteAccessorsCall) Fields(s ...googleapi.Field) *InventorySourcesEditInventorySourceReadWriteAccessorsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *InventorySourcesEditInventorySourceReadWriteAccessorsCall) Context(ctx context.Context) *InventorySourcesEditInventorySourceReadWriteAccessorsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *InventorySourcesEditInventorySourceReadWriteAccessorsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *InventorySourcesEditInventorySourceReadWriteAccessorsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.editinventorysourcereadwriteaccessorsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/inventorySources/{+inventorySourceId}:editInventorySourceReadWriteAccessors") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "inventorySourceId": strconv.FormatInt(c.inventorySourceId, 10), + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "displayvideo.inventorySources.editInventorySourceReadWriteAccessors" call. +// Exactly one of *InventorySourceAccessors or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *InventorySourceAccessors.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *InventorySourcesEditInventorySourceReadWriteAccessorsCall) Do(opts ...googleapi.CallOption) (*InventorySourceAccessors, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &InventorySourceAccessors{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Edits read/write accessors of an inventory source. Returns the updated read_write_accessors for the inventory source.", + // "flatPath": "v1/inventorySources/{inventorySourcesId}:editInventorySourceReadWriteAccessors", + // "httpMethod": "POST", + // "id": "displayvideo.inventorySources.editInventorySourceReadWriteAccessors", + // "parameterOrder": [ + // "inventorySourceId" + // ], + // "parameters": { + // "inventorySourceId": { + // "description": "Required. The ID of inventory source to update.", + // "format": "int64", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/inventorySources/{+inventorySourceId}:editInventorySourceReadWriteAccessors", + // "request": { + // "$ref": "EditInventorySourceReadWriteAccessorsRequest" + // }, + // "response": { + // "$ref": "InventorySourceAccessors" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/display-video" + // ] + // } + +} + // method id "displayvideo.inventorySources.get": type InventorySourcesGetCall struct { @@ -37674,6 +39474,190 @@ func (c *InventorySourcesListCall) Pages(ctx context.Context, f func(*ListInvent } } +// method id "displayvideo.inventorySources.patch": + +type InventorySourcesPatchCall struct { + s *Service + inventorySourceId int64 + inventorysource *InventorySource + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an existing inventory source. Returns the updated +// inventory source if successful. +// +// - inventorySourceId: Output only. The unique ID of the inventory +// source. Assigned by the system. +func (r *InventorySourcesService) Patch(inventorySourceId int64, inventorysource *InventorySource) *InventorySourcesPatchCall { + c := &InventorySourcesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.inventorySourceId = inventorySourceId + c.inventorysource = inventorysource + return c +} + +// AdvertiserId sets the optional parameter "advertiserId": The ID of +// the advertiser that the request is being made within. +func (c *InventorySourcesPatchCall) AdvertiserId(advertiserId int64) *InventorySourcesPatchCall { + c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) + return c +} + +// PartnerId sets the optional parameter "partnerId": The ID of the +// partner that the request is being made within. +func (c *InventorySourcesPatchCall) PartnerId(partnerId int64) *InventorySourcesPatchCall { + c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// mask to control which fields to update. +func (c *InventorySourcesPatchCall) UpdateMask(updateMask string) *InventorySourcesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *InventorySourcesPatchCall) Fields(s ...googleapi.Field) *InventorySourcesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *InventorySourcesPatchCall) Context(ctx context.Context) *InventorySourcesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *InventorySourcesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *InventorySourcesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.inventorysource) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/inventorySources/{+inventorySourceId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "inventorySourceId": strconv.FormatInt(c.inventorySourceId, 10), + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "displayvideo.inventorySources.patch" call. +// Exactly one of *InventorySource or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *InventorySource.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *InventorySourcesPatchCall) Do(opts ...googleapi.CallOption) (*InventorySource, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &InventorySource{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates an existing inventory source. Returns the updated inventory source if successful.", + // "flatPath": "v1/inventorySources/{inventorySourcesId}", + // "httpMethod": "PATCH", + // "id": "displayvideo.inventorySources.patch", + // "parameterOrder": [ + // "inventorySourceId" + // ], + // "parameters": { + // "advertiserId": { + // "description": "The ID of the advertiser that the request is being made within.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "inventorySourceId": { + // "description": "Output only. The unique ID of the inventory source. Assigned by the system.", + // "format": "int64", + // "location": "path", + // "pattern": "^[^/]+$", + // "required": true, + // "type": "string" + // }, + // "partnerId": { + // "description": "The ID of the partner that the request is being made within.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The mask to control which fields to update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/inventorySources/{+inventorySourceId}", + // "request": { + // "$ref": "InventorySource" + // }, + // "response": { + // "$ref": "InventorySource" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/display-video" + // ] + // } + +} + // method id "displayvideo.media.download": type MediaDownloadCall struct { diff --git a/jobs/v4/jobs-api.json b/jobs/v4/jobs-api.json index aab7c3aba21..8fed443017f 100644 --- a/jobs/v4/jobs-api.json +++ b/jobs/v4/jobs-api.json @@ -903,7 +903,7 @@ } } }, - "revision": "20220325", + "revision": "20220513", "rootUrl": "https://jobs.googleapis.com/", "schemas": { "ApplicationInfo": { @@ -2060,7 +2060,7 @@ "type": "array" }, "companyDisplayNames": { - "description": "This filter specifies the company Company.display_name of the jobs to search against. The company name must match the value exactly. Alternatively, if the value being searched for is wrapped in `SUBSTRING_MATCH([value])`, the company name must contain a case insensitive substring match of the value. Using this function may increase latency. Sample Value: `SUBSTRING_MATCH(google)` If a value isn't specified, jobs within the search results are associated with any company. If multiple values are specified, jobs within the search results may be associated with any of the specified companies. At most 20 company display name filters are allowed.", + "description": "This filter specifies the company Company.display_name of the jobs to search against. The company name must match the value exactly. Alternatively, the value being searched for can be wrapped in different match operators. `SUBSTRING_MATCH([value])` The company name must contain a case insensitive substring match of the value. Using this function may increase latency. Sample Value: `SUBSTRING_MATCH(google)` `MULTI_WORD_TOKEN_MATCH([value])` The value will be treated as a multi word token and the company name must contain a case insensitive match of the value. Using this function may increase latency. Sample Value: `MULTI_WORD_TOKEN_MATCH(google)` If a value isn't specified, jobs within the search results are associated with any company. If multiple values are specified, jobs within the search results may be associated with any of the specified companies. At most 20 company display name filters are allowed.", "items": { "type": "string" }, @@ -2394,12 +2394,14 @@ "enum": [ "TELECOMMUTE_PREFERENCE_UNSPECIFIED", "TELECOMMUTE_EXCLUDED", - "TELECOMMUTE_ALLOWED" + "TELECOMMUTE_ALLOWED", + "TELECOMMUTE_JOBS_EXCLUDED" ], "enumDescriptions": [ "Default value if the telecommute preference isn't specified.", - "Ignore telecommute status of jobs.", - "Allow telecommute jobs." + "DEPRECATED. Ignore telecommute status of jobs. Use TELECOMMUTE_JOBS_EXCLUDED if want to exclude telecommute jobs.", + "Allow telecommute jobs.", + "Exclude telecommute jobs." ], "type": "string" } diff --git a/jobs/v4/jobs-gen.go b/jobs/v4/jobs-gen.go index 24081cdeb3d..dc3c1bd8a70 100644 --- a/jobs/v4/jobs-gen.go +++ b/jobs/v4/jobs-gen.go @@ -1996,15 +1996,19 @@ type JobQuery struct { // CompanyDisplayNames: This filter specifies the company // Company.display_name of the jobs to search against. The company name - // must match the value exactly. Alternatively, if the value being - // searched for is wrapped in `SUBSTRING_MATCH([value])`, the company - // name must contain a case insensitive substring match of the value. - // Using this function may increase latency. Sample Value: - // `SUBSTRING_MATCH(google)` If a value isn't specified, jobs within the - // search results are associated with any company. If multiple values - // are specified, jobs within the search results may be associated with - // any of the specified companies. At most 20 company display name - // filters are allowed. + // must match the value exactly. Alternatively, the value being searched + // for can be wrapped in different match operators. + // `SUBSTRING_MATCH([value])` The company name must contain a case + // insensitive substring match of the value. Using this function may + // increase latency. Sample Value: `SUBSTRING_MATCH(google)` + // `MULTI_WORD_TOKEN_MATCH([value])` The value will be treated as a + // multi word token and the company name must contain a case insensitive + // match of the value. Using this function may increase latency. Sample + // Value: `MULTI_WORD_TOKEN_MATCH(google)` If a value isn't specified, + // jobs within the search results are associated with any company. If + // multiple values are specified, jobs within the search results may be + // associated with any of the specified companies. At most 20 company + // display name filters are allowed. CompanyDisplayNames []string `json:"companyDisplayNames,omitempty"` // CompensationFilter: This search filter is applied only to @@ -2533,8 +2537,11 @@ type LocationFilter struct { // Possible values: // "TELECOMMUTE_PREFERENCE_UNSPECIFIED" - Default value if the // telecommute preference isn't specified. - // "TELECOMMUTE_EXCLUDED" - Ignore telecommute status of jobs. + // "TELECOMMUTE_EXCLUDED" - DEPRECATED. Ignore telecommute status of + // jobs. Use TELECOMMUTE_JOBS_EXCLUDED if want to exclude telecommute + // jobs. // "TELECOMMUTE_ALLOWED" - Allow telecommute jobs. + // "TELECOMMUTE_JOBS_EXCLUDED" - Exclude telecommute jobs. TelecommutePreference string `json:"telecommutePreference,omitempty"` // ForceSendFields is a list of field names (e.g. "Address") to diff --git a/servicedirectory/v1/servicedirectory-api.json b/servicedirectory/v1/servicedirectory-api.json index 5ff185fd7a1..991f19c7cb7 100644 --- a/servicedirectory/v1/servicedirectory-api.json +++ b/servicedirectory/v1/servicedirectory-api.json @@ -883,7 +883,7 @@ } } }, - "revision": "20220505", + "revision": "20220518", "rootUrl": "https://servicedirectory.googleapis.com/", "schemas": { "Binding": { @@ -1144,7 +1144,7 @@ "id": "ResolveServiceRequest", "properties": { "endpointFilter": { - "description": "Optional. The filter applied to the endpoints of the resolved service. General `filter` string syntax: ` ()` * `` can be `name`, `address`, `port`, or `annotations.` for map field * `` can be `\u003c`, `\u003e`, `\u003c=`, `\u003e=`, `!=`, `=`, `:`. Of which `:` means `HAS`, and is roughly the same as `=` * `` must be the same data type as field * `` can be `AND`, `OR`, `NOT` Examples of valid filters: * `annotations.owner` returns endpoints that have a annotation with the key `owner`, this is the same as `annotations:owner` * `annotations.protocol=gRPC` returns endpoints that have key/value `protocol=gRPC` * `address=192.108.1.105` returns endpoints that have this address * `port\u003e8080` returns endpoints that have port number larger than 8080 * `name\u003eprojects/my-project/locations/us-east1/namespaces/my-namespace/services/my-service/endpoints/endpoint-c` returns endpoints that have name that is alphabetically later than the string, so \"endpoint-e\" is returned but \"endpoint-a\" is not * `annotations.owner!=sd AND annotations.foo=bar` returns endpoints that have `owner` in annotation key but value is not `sd` AND have key/value `foo=bar` * `doesnotexist.foo=bar` returns an empty list. Note that endpoint doesn't have a field called \"doesnotexist\". Since the filter does not match any endpoint, it returns no results For more information about filtering, see [API Filtering](https://aip.dev/160).", + "description": "Optional. The filter applied to the endpoints of the resolved service. General `filter` string syntax: ` ()` * `` can be `name`, `address`, `port`, or `annotations.` for map field * `` can be `\u003c`, `\u003e`, `\u003c=`, `\u003e=`, `!=`, `=`, `:`. Of which `:` means `HAS`, and is roughly the same as `=` * `` must be the same data type as field * `` can be `AND`, `OR`, `NOT` Examples of valid filters: * `annotations.owner` returns endpoints that have a annotation with the key `owner`, this is the same as `annotations:owner` * `annotations.protocol=gRPC` returns endpoints that have key/value `protocol=gRPC` * `address=192.108.1.105` returns endpoints that have this address * `port\u003e8080` returns endpoints that have port number larger than 8080 * `name\u003eprojects/my-project/locations/us-east1/namespaces/my-namespace/services/my-service/endpoints/endpoint-c` returns endpoints that have name that is alphabetically later than the string, so \"endpoint-e\" is returned but \"endpoint-a\" is not * `name=projects/my-project/locations/us-central1/namespaces/my-namespace/services/my-service/endpoints/ep-1` returns the endpoint that has an endpoint_id equal to `ep-1` * `annotations.owner!=sd AND annotations.foo=bar` returns endpoints that have `owner` in annotation key but value is not `sd` AND have key/value `foo=bar` * `doesnotexist.foo=bar` returns an empty list. Note that endpoint doesn't have a field called \"doesnotexist\". Since the filter does not match any endpoint, it returns no results For more information about filtering, see [API Filtering](https://aip.dev/160).", "type": "string" }, "maxEndpoints": { diff --git a/servicedirectory/v1/servicedirectory-gen.go b/servicedirectory/v1/servicedirectory-gen.go index 4fdccd0e8fa..83aa2492f50 100644 --- a/servicedirectory/v1/servicedirectory-gen.go +++ b/servicedirectory/v1/servicedirectory-gen.go @@ -839,7 +839,10 @@ type ResolveServiceRequest struct { // `name>projects/my-project/locations/us-east1/namespaces/my-namespace/s // ervices/my-service/endpoints/endpoint-c` returns endpoints that have // name that is alphabetically later than the string, so "endpoint-e" is - // returned but "endpoint-a" is not * `annotations.owner!=sd AND + // returned but "endpoint-a" is not * + // `name=projects/my-project/locations/us-central1/namespaces/my-namespac + // e/services/my-service/endpoints/ep-1` returns the endpoint that has + // an endpoint_id equal to `ep-1` * `annotations.owner!=sd AND // annotations.foo=bar` returns endpoints that have `owner` in // annotation key but value is not `sd` AND have key/value `foo=bar` * // `doesnotexist.foo=bar` returns an empty list. Note that endpoint diff --git a/servicedirectory/v1beta1/servicedirectory-api.json b/servicedirectory/v1beta1/servicedirectory-api.json index 5da44fab1f2..051c90c4a47 100644 --- a/servicedirectory/v1beta1/servicedirectory-api.json +++ b/servicedirectory/v1beta1/servicedirectory-api.json @@ -883,7 +883,7 @@ } } }, - "revision": "20220505", + "revision": "20220518", "rootUrl": "https://servicedirectory.googleapis.com/", "schemas": { "Binding": { @@ -1168,7 +1168,7 @@ "id": "ResolveServiceRequest", "properties": { "endpointFilter": { - "description": "Optional. The filter applied to the endpoints of the resolved service. General `filter` string syntax: ` ()` * `` can be `name`, `address`, `port`, or `metadata.` for map field * `` can be `\u003c`, `\u003e`, `\u003c=`, `\u003e=`, `!=`, `=`, `:`. Of which `:` means `HAS`, and is roughly the same as `=` * `` must be the same data type as field * `` can be `AND`, `OR`, `NOT` Examples of valid filters: * `metadata.owner` returns endpoints that have a annotation with the key `owner`, this is the same as `metadata:owner` * `metadata.protocol=gRPC` returns endpoints that have key/value `protocol=gRPC` * `address=192.108.1.105` returns endpoints that have this address * `port\u003e8080` returns endpoints that have port number larger than 8080 * `name\u003eprojects/my-project/locations/us-east1/namespaces/my-namespace/services/my-service/endpoints/endpoint-c` returns endpoints that have name that is alphabetically later than the string, so \"endpoint-e\" is returned but \"endpoint-a\" is not * `metadata.owner!=sd AND metadata.foo=bar` returns endpoints that have `owner` in annotation key but value is not `sd` AND have key/value `foo=bar` * `doesnotexist.foo=bar` returns an empty list. Note that endpoint doesn't have a field called \"doesnotexist\". Since the filter does not match any endpoint, it returns no results For more information about filtering, see [API Filtering](https://aip.dev/160).", + "description": "Optional. The filter applied to the endpoints of the resolved service. General `filter` string syntax: ` ()` * `` can be `name`, `address`, `port`, or `metadata.` for map field * `` can be `\u003c`, `\u003e`, `\u003c=`, `\u003e=`, `!=`, `=`, `:`. Of which `:` means `HAS`, and is roughly the same as `=` * `` must be the same data type as field * `` can be `AND`, `OR`, `NOT` Examples of valid filters: * `metadata.owner` returns endpoints that have a annotation with the key `owner`, this is the same as `metadata:owner` * `metadata.protocol=gRPC` returns endpoints that have key/value `protocol=gRPC` * `address=192.108.1.105` returns endpoints that have this address * `port\u003e8080` returns endpoints that have port number larger than 8080 * `name\u003eprojects/my-project/locations/us-east1/namespaces/my-namespace/services/my-service/endpoints/endpoint-c` returns endpoints that have name that is alphabetically later than the string, so \"endpoint-e\" is returned but \"endpoint-a\" is not * `name=projects/my-project/locations/us-central1/namespaces/my-namespace/services/my-service/endpoints/ep-1` returns the endpoint that has an endpoint_id equal to `ep-1` * `metadata.owner!=sd AND metadata.foo=bar` returns endpoints that have `owner` in annotation key but value is not `sd` AND have key/value `foo=bar` * `doesnotexist.foo=bar` returns an empty list. Note that endpoint doesn't have a field called \"doesnotexist\". Since the filter does not match any endpoint, it returns no results For more information about filtering, see [API Filtering](https://aip.dev/160).", "type": "string" }, "maxEndpoints": { diff --git a/servicedirectory/v1beta1/servicedirectory-gen.go b/servicedirectory/v1beta1/servicedirectory-gen.go index 50ff14ec01e..3fca0f139bd 100644 --- a/servicedirectory/v1beta1/servicedirectory-gen.go +++ b/servicedirectory/v1beta1/servicedirectory-gen.go @@ -854,7 +854,10 @@ type ResolveServiceRequest struct { // `name>projects/my-project/locations/us-east1/namespaces/my-namespace/s // ervices/my-service/endpoints/endpoint-c` returns endpoints that have // name that is alphabetically later than the string, so "endpoint-e" is - // returned but "endpoint-a" is not * `metadata.owner!=sd AND + // returned but "endpoint-a" is not * + // `name=projects/my-project/locations/us-central1/namespaces/my-namespac + // e/services/my-service/endpoints/ep-1` returns the endpoint that has + // an endpoint_id equal to `ep-1` * `metadata.owner!=sd AND // metadata.foo=bar` returns endpoints that have `owner` in annotation // key but value is not `sd` AND have key/value `foo=bar` * // `doesnotexist.foo=bar` returns an empty list. Note that endpoint